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: Felix Lee <felix dot 1 at canids dot net>
- To: Sridhar <asridhar at ishoni dot com>
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 20 Jan 2004 06:34:15 -0800
- Subject: Re: do I need to report this in the bug list?
- References: <7CFD7CA8510CD6118F950002A519EA3004C8CB55@leonoid.in.ishoni.com>
Sridhar <asridhar@ishoni.com>:
> My problem is that a, becomes zero after the scanf operation of b. And when
> I tried to use %h instead of %d the program did even stop for the inputs. I
%h is a modifier. you need to say "%hd".
actually, you should say "%hu" since you're using unsigned short ints.
--