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

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

Re: int conversion problem with 3.1.0


From: Aharon Robbins
Subject: Re: int conversion problem with 3.1.0
Date: Sun, 10 Jun 2001 19:09:11 +0300

Hi. Thanks for the report.

Gawk 3.1 now recognizes octal and hex constants in the source code.
If you remove the leading 0 from the constant, your program will
work the way you expect, and be more portable, too.

I will add a lint warning about this for patch #1.

Arnold

> Date: Thu, 7 Jun 2001 09:19:04 -0700
> From: Nick Pasich <address@hidden>
> To: address@hidden
> Subject: int conversion problem with 3.1.0
>
> #
> # I ran across this problem after installing gawk-3.1.0 .....
> #
> # It happened after running an existing program that has been
> # in use for years on a daily basis..........................
> #
> # I'm running Linux Version 2.4.5 -- gawk-3.1.0 - Compiled
> # with gcc version 2.95.3 ................................
> #
> # The New gawk Version 3.1.0 produces the binary representation
> # as opposed to the actual number minus the leading zero.......
> #
> #              Thanks,
> #
> #           ----( Nick Pasich )----
>
> gawk-3.0.4  'BEGIN {  printf("Using gawk-3.0.4 = %d\n", 010000) }'
>
> gawk-3.1.0  'BEGIN {  printf("Using gawk-3.1.0 = %d\n", 010000) }'



reply via email to

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