summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-12 15:40:05 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 17:28:50 +0100
commitf1b5381ed70a21a6f460bcd6a8bedad10b9a5a02 (patch)
tree0208b5faddf0ebb824a53a552bcf0ec0a72a6848 /include
parent2298c1a66380a0c91ea222d01259686641ab4c6c (diff)
formula: PVS-Studio V610 Undefined behavior shift negative signed int
Change-Id: If6c054abfab6ba421a6924a65dac76782e6eaa0b
Diffstat (limited to 'include')
-rw-r--r--include/formula/grammar.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/formula/grammar.hxx b/include/formula/grammar.hxx
index 8fe2823a5ea7..4f6a2bcdf2c3 100644
--- a/include/formula/grammar.hxx
+++ b/include/formula/grammar.hxx
@@ -53,7 +53,7 @@ public:
// Room for 256 reference conventions.
static const int kEnglishBit = (1 << (kConventionShift + 8));
// Mask off all non-language bits.
- static const int kFlagMask = ~((~int(0)) << kConventionShift);
+ static const int kFlagMask = ~((~unsigned(0)) << kConventionShift);
/** Values encoding the formula language plus address reference convention
plus English parsing/formatting