|
From: | Paul D. Smith |
Subject: | [bug #34608] comparison of unsigned expression < 0 is always false |
Date: | Sun, 13 Nov 2011 20:51:36 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Ubuntu/10.10 (maverick) Firefox/3.6.23 |
Follow-up Comment #3, bug #34608 (project make): Hm. This change is not identical to the original. To get that you'd need to write !((t) -1 >= 0) and if you do that then GCC warns again. However I'm not aware offhand of any numeric implementations where casting a -1 to an unsigned value yields 0 so maybe this change would be sufficient. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?34608> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |