Patch committed: Add typecasts to avoid signed/unsigned warning

Ian Lance Taylor iant@google.com
Fri Jan 13 22:27:00 GMT 2012


A patch I have developed for PR 50012 issues a warning for some code in
ipa-cp.c in which a variable of type int is compared to the return value
of VEC_length, which is unsigned int.  This should logically require a
type cast, and actually I'm not sure why the warning is not issued
without my patch.  In any case, this patch adds the required type
casts.  Committed as obvious.

Ian


2012-01-13  Ian Lance Taylor  <iant@google.com>

	* ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
	comparing param_index to VEC_length result.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 922 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120113/5ecbf8d0/attachment.bin>


More information about the Gcc-patches mailing list