This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: do I need to report this in the bug list?
- From: John Love-Jensen <eljay at adobe dot com>
- To: Sridhar <asridhar at ishoni dot com>, "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 20 Jan 2004 06:41:36 -0600
- Subject: 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