summaryrefslogtreecommitdiff
path: root/perly.y
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2015-01-04 10:48:13 -0800
committerFather Chrysostomos <sprout@cpan.org>2015-01-31 22:03:51 -0800
commit8823cb892f42d6ac57b0703ce34bf092db3507d4 (patch)
tree9819f3fa37abdfd928ec198c494cdb1c57fca174 /perly.y
parenta9f19d0f50fa6980e7bdbcf691d81e40b2669a17 (diff)
downloadperl-8823cb892f42d6ac57b0703ce34bf092db3507d4.tar.gz
Parse and compile string- and num-specific bitops
Yay, the semicolons are back.
Diffstat (limited to 'perly.y')
-rw-r--r--perly.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.y b/perly.y
index 80503604b2..9f10b8b375 100644
--- a/perly.y
+++ b/perly.y
@@ -829,7 +829,7 @@ termunop : '-' term %prec UMINUS /* -$x */
| '!' term /* !$x */
{ $$ = newUNOP(OP_NOT, 0, scalar($2)); }
| '~' term /* ~$x */
- { $$ = newUNOP(OP_COMPLEMENT, 0, scalar($2)); }
+ { $$ = newUNOP($1, 0, scalar($2)); }
| term POSTINC /* $x++ */
{ $$ = newUNOP(OP_POSTINC, 0,
op_lvalue(scalar($1), OP_POSTINC)); }