Ticket #25909: patch-base_gsfcmap.c.diff
File patch-base_gsfcmap.c.diff, 791 bytes (added by vinc17@…, 14 years ago) |
---|
-
base/gsfcmap.c
500 500 break; 501 501 } 502 502 penum->index[1] = j; 503 if (i > 255) { 503 504 penum->entry.key[0][0] = (uchar)(i >> 8); 504 505 penum->entry.key[0][cmap->key_size - 1] = (uchar)(i & 0xFF); 505 506 penum->entry.key[1][0] = (uchar)(j >> 8); 506 507 penum->entry.key[1][cmap->key_size - 1] = (uchar)((j - 1) & 0xFF); 507 508 memcpy(penum->temp_value, map + i * gs_cmap_ToUnicode_code_bytes, 508 509 gs_cmap_ToUnicode_code_bytes); 510 } else { 511 penum->entry.key[0][0] = (uchar)(i); 512 penum->entry.key[1][0] = (uchar)(j-1); 513 penum->entry.key_size = 1; 514 memcpy(penum->temp_value, map + i * gs_cmap_ToUnicode_code_bytes, 515 gs_cmap_ToUnicode_code_bytes); 516 } 509 517 return 0; 510 518 } 511 519