c/4943: pointer address corruption in function call
bangerth@dealii.org
bangerth@dealii.org
Mon Nov 4 10:56:00 GMT 2002
Synopsis: pointer address corruption in function call
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Nov 4 10:56:49 2002
State-Changed-Why:
Not a bug. The problem lies here:
ushort i = 0, tmp = 0;
scanf("%u", &tmp);
%u wants an unsigned int, not an unsigned short. With that
change, the program does what is expected. Maybe this
serves as a good reason for considering C++ over C?
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4943
More information about the Gcc-bugs
mailing list