aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2018-02-07 14:16:47 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2018-02-07 14:16:47 -0500
commitf9ff7769b7b38973bf7447b8ca596435ccf77b67 (patch)
tree28313e5d0755e3e10c10619edcc660202a0dd8fe /interpret.h
parent9b4b32b5911b9d51643d2efd6c646f17e5214c03 (diff)
downloadegawk-f9ff7769b7b38973bf7447b8ca596435ccf77b67.tar.gz
egawk-f9ff7769b7b38973bf7447b8ca596435ccf77b67.tar.bz2
egawk-f9ff7769b7b38973bf7447b8ca596435ccf77b67.zip
Fix bug printing +"01" in regular and MPFR mode.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/interpret.h b/interpret.h
index 2ee68112..96e2c890 100644
--- a/interpret.h
+++ b/interpret.h
@@ -621,6 +621,9 @@ mod:
case Op_unary_plus:
// Force argument to be numeric
t1 = TOP_NUMBER();
+ r = make_number(t1->numbr);
+ DEREF(t1);
+ REPLACE(r);
break;
case Op_store_sub: