This is the mail archive of the gcc-help@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: do I need to report this in the bug list?


Hi Sridhar,

It's not a bug.  Your code is bad.

An "unsigned short int" is not the same as an "int".

You are performing a scanf for an int ("%d"), but you are storing it in an
unsigned short int.  Bad voodoo.

--Eljay



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