This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC 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]

Re: c/4943: pointer address corruption in function call


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


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