summaryrefslogtreecommitdiff
path: root/shared/staticAssert.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/staticAssert.h')
-rw-r--r--shared/staticAssert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/staticAssert.h b/shared/staticAssert.h
index f14ed68e..14f52221 100644
--- a/shared/staticAssert.h
+++ b/shared/staticAssert.h
@@ -17,7 +17,7 @@
#define assert_static(e) \
do { \
-enum { assert_static__ = 1/(e) }; \
+enum { assert_static__ = 1/(static_cast<int>(e)) }; \
} while (0)
#endif
bgstack15