GBE: silent the compilation warning when generate the pch file.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Tue, 3 Sep 2013 10:01:32 +0000 (18:01 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 4 Sep 2013 08:20:25 +0000 (16:20 +0800)
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: "Sun, Yi" <yi.sun@intel.com>
backend/src/gen_builtin_vector.py

index cf023e7..0a30738 100755 (executable)
@@ -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)