From: Harald O. <har...@el...> - 2015-02-09 16:00:26
|
Thanks, Milton, for the patch. It is now included here: https://sourceforge.net/u/oehhar/zint/ci/master/tree/ Milton accepted the more liberal revised licence for his contribution. -Harald Am 28.01.2015 um 13:26 schrieb Milton Neal: > Hi Harald > > Thanks for the update dmatrix.c file with the Macro 5 and 6 support. > > BTW I was doing some more testing and came across a small problem. Seems > I forgot to increment target_length in finalising edifact remainer of 3. > > See below. > > > > Thanks again Milton > > > > if(process_p == 3) // Append edifact unlatch value (31) and encode as > triple. > > { > > target[target_length] = (unsigned > char)((process_buffer[0] << 2) + ((process_buffer[1] & 0x30) >> 4)); > target_length++; > > target[target_length] = (unsigned > char)(((process_buffer[1] & 0x0f) << 4) + ((process_buffer[2] & 0x3c) >> > 2)); target_length++; > > target[target_length] = (unsigned > char)(((process_buffer[2] & 0x03) << 6) + 31); target_length++; ßforgot > this!!! > > } > > > |