summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-08-12 07:11:23 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-08-12 07:11:23 +0300
commitdcb6d54b3c272a7c8f0efadb7fad215e39248cad (patch)
tree25c58bdf841be607324a5787af814096cd8ec9ad
parent1c972b5c234fb031f62356706cd8c0336312833d (diff)
downloadgawk-dcb6d54b3c272a7c8f0efadb7fad215e39248cad.tar.gz
Minor text and formatting edits in int_array.c.
-rw-r--r--ChangeLog4
-rw-r--r--int_array.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index efdbad2a..f218714f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}