[Top][All Lists]

[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

From: Andrew J. Schorr
Subject: Re: [bug-gawk] [bug report] gawk doesn???t work correctly when assign special value to variable
Date: Mon, 10 Aug 2015 09:14:58 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Aug 10, 2015 at 07:41:19AM +0200, Hermann Peifer wrote:
> My patched gawk results into [1] 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 [2]. 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
catching this.

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...


Attachment: typeof.patch
Description: Text document

reply via email to

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