[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] [bug report] gawk doesn???t work correctly when assign sp
Andrew J. Schorr
Re: [bug-gawk] [bug report] gawk doesn???t work correctly when assign special value to variable
Mon, 10 Aug 2015 09:14:58 -0400
On Mon, Aug 10, 2015 at 07:41:19AM +0200, Hermann Peifer wrote:
> My patched gawk results into  where typeof results would now explain why
> a numerical comparison has been made. There were some new compiler warnings
> which might be relevant -- or not . Another side-effect was that 3 TESTS
> FAILED (_dbugtypedre1, _typedregex2, _typeof1). I guess these can easily be
> fixed later, if needed.
> Does this behaviour (initially created with some flags > call to
> force_number which changes flags) also occur when handling input data, so
> that a similar patch would be needed for fixing typeof() results for fields?
Oops, sorry, I should have parenthesized that expression. I usually use
parentheses whenever in doubt, but I thought that might violate gawk style.
With the attached (revised) patch, all the tests pass for me. Thanks for
As is obvious, I haven't tested this, so I'm not sure whether it induces
the "typeof" function to report incorrect results in other cases...
Description: Text document
Re: [bug-gawk] [bug report] gawk doesn’t work correctly when assign special value to variable, Jarno Suni, 2015/08/10