mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
regtests: Fix a copy/paste bug in the #if ... partial evaluation code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3930 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -166,8 +166,8 @@ function evaluate(stmnt, pattern, arg, op, result) {
|
||||
while (match(stmnt, pattern, op) != 0)
|
||||
{
|
||||
result="error"
|
||||
if (op[2] == "+") result = op[1] * op[3]
|
||||
else if (op[2] == "-") result = op[1] / op[3]
|
||||
if (op[2] == "+") result = op[1] + op[3]
|
||||
else if (op[2] == "-") result = op[1] - op[3]
|
||||
sub(pattern, result, stmnt)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user