diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-12 07:11:23 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-08-12 07:11:23 +0300 |
commit | dcb6d54b3c272a7c8f0efadb7fad215e39248cad (patch) | |
tree | 25c58bdf841be607324a5787af814096cd8ec9ad | |
parent | 1c972b5c234fb031f62356706cd8c0336312833d (diff) | |
download | egawk-dcb6d54b3c272a7c8f0efadb7fad215e39248cad.tar.gz egawk-dcb6d54b3c272a7c8f0efadb7fad215e39248cad.tar.bz2 egawk-dcb6d54b3c272a7c8f0efadb7fad215e39248cad.zip |
Minor text and formatting edits in int_array.c.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | int_array.c | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -2,6 +2,10 @@ * dfa.c: Sync with GNU grep. + Unrelated: + + * int_array.c: Minor text and formatting edits. + 2016-08-09 Andrew J. Schorr <aschorr@telemetry-investments.com> * awk.h: Add a comment explaining the NUMINT flag in more detail. diff --git a/int_array.c b/int_array.c index 1fa32bd7..6cffec86 100644 --- a/int_array.c +++ b/int_array.c @@ -143,7 +143,7 @@ is_integer(NODE *symbol, NODE *subs) d = subs->numbr; if (d <= INT32_MAX && d >= INT32_MIN && d == (int32_t) d) { /* - * the numeric value is an integer, but we must + * The numeric value is an integer, but we must * protect against strings that cannot be generated * from sprintf("%ld", <subscript>). This can happen * with strnum or string values. We could skip this @@ -151,7 +151,8 @@ is_integer(NODE *symbol, NODE *subs) * code does not currently distinguish between NUMBER * and strnum values. */ - if ((subs->flags & STRCUR) == 0 || standard_integer_string(subs->stptr, subs->stlen)) { + if ( (subs->flags & STRCUR) == 0 + || standard_integer_string(subs->stptr, subs->stlen)) { subs->flags |= NUMINT; return & success_node; } |