bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gawk printf format problem with negative numbers


From: Paul Eggert
Subject: Re: gawk printf format problem with negative numbers
Date: 28 Oct 2003 12:57:10 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

"Shaffer, Kenneth" <address@hidden> writes:

> The crux of the problem is the compare "if (tmpval < INTMAX_MIN)"... it thinks
> -1234 is less than the maximum negative number

What is the value of INTMAX_MIN on your host?  Can you reproduce the problem
with a small C program?  Something like this:

#include <stdio.h>
#include <inttypes.h>
double tmpval = -1234;
int main (void)
{
  if (tmpval < INTMAX_MIN)
    printf ("This compiler is buggy\n");
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]