summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-21 07:05:46 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-23 03:31:27 +0300
commita946678bc7f37475ecef5b4282a77bc4e0f1afa7 (patch)
tree6a755ab178b932d7761ab76a64dd33c62373d700 /src/enums
parentdeef43ce3342df308cd19c9ff37a2e953ed31cf1 (diff)
downloadplus-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.tar.gz
plus-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.tar.bz2
plus-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.tar.xz
plus-a946678bc7f37475ecef5b4282a77bc4e0f1afa7.zip
Add cast into macro toInt for old compilers.
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 6e030f72a..2977d87a5 100644
--- a/src/enums/simpletypes/intdefines.h
+++ b/src/enums/simpletypes/intdefines.h
@@ -43,7 +43,7 @@
const name name##_zero = 0; \
const name name##_one = 1
#define fromInt(val, name) static_cast<name>(val)
-#define toInt(val, name) (val)
+#define toInt(val, name) static_cast<name>(val)
#define defIntEnumNeg(name) const name name##_negOne = -1
#endif // ADVGCC