summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/simpletypes/intdefines.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/enums/simpletypes/intdefines.h b/src/enums/simpletypes/intdefines.h
index d1748d689..9a3b5b4ee 100644
--- a/src/enums/simpletypes/intdefines.h
+++ b/src/enums/simpletypes/intdefines.h
@@ -42,7 +42,7 @@
typedef type name; \
const name name##_zero = 0; \
const name name##_one = 1
-#define fromInt(val, name) (val)
+#define fromInt(val, name) static_cast<name>(val)
#define toInt(val, name) (val)
#define defIntEnumNeg(name) const name name##_negOne = -1