Skip to contentSkip to conversation

dyngen.c: fix signedness gcc4 warning

PATCH New Pavel Janík 1 participant 1 message Jan 4, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dyngen.c: fix signedness gcc4 warning

Hi,

fetch_next_pair_value is declared as:

static inline void fetch_next_pair_value(struct relocation_info * rel, unsigned int *value)

so the second arg should be unsigned. Please apply.

dyngen.c +1 -1
@@ -970,7 +970,7 @@
 	struct scattered_relocation_info * sca_rel = (struct scattered_relocation_info*)rel;
 	int sectnum = rel->r_symbolnum;
 	int sectoffset;
-	int other_half=0;
+	unsigned int other_half=0;
 	
 	/* init the slide value */
 	*sslide = 0;
Signature · 4 lines
Pavel Janík

I'm serious as mud.  :-)
                  -- Lars Magne Ingebrigtsen in gnus.ding