This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/216] scanf() conversion %i incorrectly reads unsigned hex values


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]