From 20f64c4e7e191b21aa1875419b3d6b3dc8be92cd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 17 Nov 2011 10:36:03 +0000 Subject: [PATCH] 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 --- scripts/specialize-patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/specialize-patch b/scripts/specialize-patch index 96a26d8fd..ee06c5989 100755 --- a/scripts/specialize-patch +++ b/scripts/specialize-patch @@ -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) }