Fix for Windows version of GnuPG 1.4.0
Werner Koch
wk at gnupg.org
Thu Dec 16 20:30:14 CET 2004
Hi,
I have figures out the problem, Really stupid one. Hope that gcc will
soo feature a warning for using just "unsigned" or "signed" to mean an
integer. Or does it already have one?
diff -u -r1.71 iobuf.c
--- util/iobuf.c 6 Dec 2004 10:32:20 -0000 1.71
+++ util/iobuf.c 16 Dec 2004 19:30:27 -0000
@@ -146,7 +146,7 @@
|| (*a == '\\' && *b == '/')) )
break;
}
- return *(const unsigned *)a - *(const unsigned *)b;
+ return *(const unsigned char *)a - *(const unsigned char *)b;
#else
return strcmp (a, b);
#endif
I guess I will do a new Windows release RSN.
Werner
More information about the Gnupg-devel
mailing list