netpbm/signed-char.patch
Dirk Stoecker b2cf595ce7 Accepting request 714038 from home:Andreas_Schwab:Factory
- signed-char.patch: fix bad use of plain char
- big-endian.patch: fix dependency on byte order

OBS-URL: https://build.opensuse.org/request/show/714038
OBS-URL: https://build.opensuse.org/package/show/graphics/netpbm?expand=0&rev=111
2019-07-08 11:48:39 +00:00

23 lines
836 B
Diff

Index: netpbm-10.86.3/converter/other/pnmtopalm/palmtopnm.c
===================================================================
--- netpbm-10.86.3.orig/converter/other/pnmtopalm/palmtopnm.c
+++ netpbm-10.86.3/converter/other/pnmtopalm/palmtopnm.c
@@ -823,7 +823,7 @@ readPackBitsRow16(FILE * const
unsigned int j;
for (j = 0; j < bytesPerRow; ) {
- char incount;
+ signed char incount;
pm_readchar(ifP, &incount);
if (incount < 0) {
/* How do we handle incount == -128 ? */
@@ -865,7 +865,7 @@ readPackBitsRow(FILE * const if
unsigned int j;
for (j = 0; j < bytesPerRow; ) {
- char incount;
+ signed char incount;
pm_readchar(ifP, &incount);
if (incount < 0) {
/* How do we handle incount == -128 ? */