summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2017-04-26 11:32:18 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2017-04-26 11:32:18 -0400
commita3be85eec86d00c12e7f4b41a9e27794fbb479a6 (patch)
tree3d2f9efda67dd1461dc48872dcff6cb2a6caca0a /ChangeLog
parent8972aa34f007e12c3eb3270b79d39403d80a542f (diff)
downloadgawk-a3be85eec86d00c12e7f4b41a9e27794fbb479a6.tar.gz
Fix bug where Node_regex was setting valref, and restore valref to Node_val part of NODE union where it belongs.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index eccda54c..a2ab628b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2017-04-26 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
+ * awkgram.y (make_regnode): Fix bug -- we should not set valref to 1
+ when creating a node of type Node_regex, since valref is appropriate
+ only for Node_val nodes. This fixes a bug introduced in commit
+ 687e6594. Also, add an assert to make it clear that this function
+ supports only Node_regex and Node_dynregex.
+ * awk.h (NODE): Restore sref to the `val' subportion, since it is not
+ really needed for Node_regex, now that the bug in make_regnode has
+ been fixed.
+ (valref): Restore macro definition.
+
2017-04-24 Arnold D. Robbins <arnold@skeeve.com>
* awk.h (NODE): Additional cleanups. Removed `aq' and `param_list'