aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-16 10:27:27 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-16 10:27:27 +0300
commit1a09783dc80ab0af7d27d3cd00512165d5daf629 (patch)
tree6c87624843676a8943101249ab432fabb9c7020a /interpret.h
parent6b3f460c7f70d3cb0fac0fb45188b2a7776d653e (diff)
parent2d63bc3ee2a686560d29e1eb7b433deb45fd7619 (diff)
downloadegawk-1a09783dc80ab0af7d27d3cd00512165d5daf629.tar.gz
egawk-1a09783dc80ab0af7d27d3cd00512165d5daf629.tar.bz2
egawk-1a09783dc80ab0af7d27d3cd00512165d5daf629.zip
Merge branch 'master' into feature/typed-regex
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/interpret.h b/interpret.h
index 5467aa87..135f4e58 100644
--- a/interpret.h
+++ b/interpret.h
@@ -616,6 +616,11 @@ mod:
REPLACE(r);
break;
+ case Op_unary_plus:
+ // Force argument to be numeric
+ t1 = TOP_NUMBER();
+ break;
+
case Op_store_sub:
/*
* array[sub] assignment optimization,