Corrette peek string negli operatori logici

git-svn-id: svn://10.65.10.50/trunk@3904 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1996-11-15 16:58:06 +00:00
parent bf0b92ea09
commit a3afbf8fff

View File

@ -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