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:
parent
bf0b92ea09
commit
a3afbf8fff
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user