From 544f3a994cf2a812bc4efbede41c1c01ecbef937 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 27 Jul 2016 16:28:48 -0400 Subject: [PATCH] fix << evaluation. --- mpw-shell-parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpw-shell-parser.cpp b/mpw-shell-parser.cpp index 27f4eca..cea9132 100644 --- a/mpw-shell-parser.cpp +++ b/mpw-shell-parser.cpp @@ -374,7 +374,7 @@ value expression_parser::eval(int op, value &lhs, value &rhs) { return lhs.to_number() >> rhs.to_number(); case '<<': - return lhs.to_number() >> rhs.to_number(); + return lhs.to_number() << rhs.to_number(); // logical || . NaN ok case '||':