aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-10-16 10:25:02 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-10-16 10:25:02 +0300
commit2d63bc3ee2a686560d29e1eb7b433deb45fd7619 (patch)
tree21b3f2b5c0b1e4de312bd4227bf840d0ae4ee08c /interpret.h
parent8b0d41a9bfe9e97c8580e40eb34c0a1889663b38 (diff)
downloadegawk-2d63bc3ee2a686560d29e1eb7b433deb45fd7619.tar.gz
egawk-2d63bc3ee2a686560d29e1eb7b433deb45fd7619.tar.bz2
egawk-2d63bc3ee2a686560d29e1eb7b433deb45fd7619.zip
Implement unary plus for real, including for pretty printing.
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 5aa62a8a..50eea9f2 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,