[Bug libc/216] scanf() conversion %i incorrectly reads unsigned hex values
relf at os2 dot ru
sourceware-bugzilla@sources.redhat.com
Fri Jun 11 08:41:00 GMT 2004
------- Additional Comments From relf at os2 dot ru 2004-06-11 08:41 -------
I'm a little bit confused. Assignments like
int x = 0xF1234567;
are perfectly valid in C. In this particular assignment x gets value -249346713.
What is the difference with sscanf(s,"%i",&x); construction? Why 32-bit
hexadecimal value is not converted to int type?
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=216
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Glibc-bugs
mailing list