PATCH: tools/winedump/pe.c -- signedness
Gerald Pfeifer
gerald at pfeifer.com
Thu Oct 30 02:37:39 CST 2003
Tested on SuSE Linux 8.2.
Gerald
ChangeLog:
Change some variables from int to unsigned to avoid signedness mismatches.
Index: pe.c
===================================================================
RCS file: /home/wine/wine/tools/winedump/pe.c,v
retrieving revision 1.28
diff -u -3 -p -r1.28 pe.c
--- pe.c 27 Oct 2003 22:11:57 -0000 1.28
+++ pe.c 30 Oct 2003 08:35:58 -0000
@@ -814,7 +814,7 @@ static void dump_string_data( const WCHA
for (i = 0; i < 16 && size; i++)
{
- int len = *ptr++;
+ unsigned len = *ptr++;
if (len >= size)
{
@@ -838,7 +838,7 @@ static void dump_msgtable_data( const vo
{
const MESSAGE_RESOURCE_DATA *data = ptr;
const MESSAGE_RESOURCE_BLOCK *block = data->Blocks;
- int i, j;
+ unsigned i, j;
for (i = 0; i < data->NumberOfBlocks; i++, block++)
{
More information about the wine-patches
mailing list