From 194d04368bb9dadc489c350524a10c98d48730ee Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Tue, 3 Sep 2013 18:01:32 +0800 Subject: [PATCH] GBE: silent the compilation warning when generate the pch file. Signed-off-by: Zhigang Gong Tested-by: "Sun, Yi" --- backend/src/gen_builtin_vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/gen_builtin_vector.py b/backend/src/gen_builtin_vector.py index cf023e7..0a30738 100755 --- a/backend/src/gen_builtin_vector.py +++ b/backend/src/gen_builtin_vector.py @@ -312,7 +312,7 @@ class builtinProto(): formatStr += '({} {} *)param{} + {:2d}'.format(ptype[2], ptype[0], n, j) else: if (self.functionName == 'select' and n == 2): - formatStr += '({})(param{}.s{:x} & (1 << (sizeof({})*8 - 1)))'.format(ptype[0], n, j, ptype[0]) + formatStr += '({0})(param{1}.s{2:x} & (({0})1 << (sizeof({0})*8 - 1)))'.format(ptype[0], n, j) else: formatStr += 'param{}.s{:x}'.format(n, j) -- 2.7.4