From a3afbf8fff6d2c906c7df8cdec0508d22d5d0708 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 15 Nov 1996 16:58:06 +0000 Subject: [PATCH] Corrette peek string negli operatori logici git-svn-id: svn://10.65.10.50/trunk@3904 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/expr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/expr.cpp b/include/expr.cpp index 186e77da5..5dbbfe280 100755 --- a/include/expr.cpp +++ b/include/expr.cpp @@ -449,7 +449,7 @@ void TExpression::eval() if (type == _strexpr) { const TString & s2 = evalstack.pop_string(); - const TString & s1 = evalstack.peek_string(); + const TString & s1 = evalstack.pop_string(); evalstack.push(real(s1 < s2 ? 1.0 : 0.0)); } else @@ -463,7 +463,7 @@ void TExpression::eval() if (type == _strexpr) { const TString & s2 = evalstack.pop_string(); - const TString & s1 = evalstack.peek_string(); + const TString & s1 = evalstack.pop_string(); evalstack.push(real(s1 > s2 ? 1.0 : 0.0)); } else