On Fri, Feb 04, 2011 at 12:24:50PM -0500, Jesse M Draper wrote:
> The error occurs in d_const, which assumes that only long long
> integers are 64 bits and therefore truncates long integers to 32
> bits. Since the argument of -1 is handled correctly in both
> programs, I am assuming that the error
I attach a sample program, a make file, and an svn patch to correct the error demonstrated by the
program. After the patch, running the program with an argument of -1 produces this output on my
64-bit Ubuntu system:
./uint -1
sizeof (unsigned long) = 8
foo (atoi (argv[1])) =
fo