[prev in list] [next in list] [prev in thread] [next in thread]
List: suse-programming-e
Subject: [suse-programming-e] =?ISO-8859-1?Q?Strange_behaviour_of_>>_=3F?=
From: "Verdi March" <cincaipatron () gmx ! net>
Date: 2005-07-20 9:57:51
Message-ID: 28041.1121853471 () www7 ! gmx ! net
[Download RAW message or body]
Hi,
the following is compiled in 9.3, glibc-2.3.4-23.4, and
gcc-3.3.5-5. The result is:
mask=0 mask1=4294967295
I would expect mask = mask1 = 0?
Regards,
Verdi
===========================================================
#include <stdio.h>
int main() {
unsigned int mask = (unsigned int) -1 >> 32;
int i = 0;
unsigned int mask1 = ((unsigned int) -1) >> (32 - i);
printf("mask=%u mask1=%u\n", mask, mask1);
return 0;
}
===========================================================
--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
--
To unsubscribe, email: suse-programming-e-unsubscribe@suse.com
For additional commands, email: suse-programming-e-help@suse.com
Archives can be found at: http://lists.suse.com/archive/suse-programming-e
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic