summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLoic Dachary <loic-test4@dachary.org>2017-04-10 07:51:10 +0000
committerLoic Dachary <loic-test4@dachary.org>2017-04-10 07:51:10 +0000
commita6862d10c9db467148f20eef2c6445ac9afd94d8 (patch)
tree5a13169b93b6e517184fbdf39033098b329d68a6 /include
parentea75cdffe1b8902bf02b4c44efb405bfb92b3e4f (diff)
parent2700e1b9ae066215b7ccb780078b32da88c9716c (diff)
downloadgf-complete-master.tar.gz
Merge branch 'wip-signed-integer-overflow-cppcheck' into 'master'HEADmaster
Wip signed integer overflow cppcheck Fix for cppcheck signed integer overflow errors See merge request !21
Diffstat (limited to 'include')
-rw-r--r--include/gf_w32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gf_w32.h b/include/gf_w32.h
index 3396402..7734f30 100644
--- a/include/gf_w32.h
+++ b/include/gf_w32.h
@@ -14,7 +14,7 @@
#include <stdint.h>
#define GF_FIELD_WIDTH (32)
-#define GF_FIRST_BIT (1 << 31)
+#define GF_FIRST_BIT ((gf_val_32_t)1 << 31)
#define GF_BASE_FIELD_WIDTH (16)
#define GF_BASE_FIELD_SIZE (1 << GF_BASE_FIELD_WIDTH)