|<< Back to previous view|
[PCC-326] ulli < slli done wrong Created: 19/Apr/11 Updated: 26/Apr/11
|Reporter:||Fred J. Tydeman||Assignee:||Unassigned|
|Environment:||Intel Pentium 4; Linux Fedora Core 14 (32-bit); pcc of 2011/04/01|
Code similar to:
static signed long long int slli = 1LL;
static unsigned long long int ulli = 1uLL;
int res = ulli < slli ;
if( res ) puts("Bad");
gets the wrong value from the '<' compare.
|Comment by Fred J. Tydeman [ 20/Apr/11 05:17 PM ]|
After more debugging, the real problem is a store into a bit-field of a struct that was just before slli was altering memory outside of the struct (slli in this case).
So, this could be closed as a dup of a previous bug.