diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-23 04:04:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-23 04:04:00 +0300 |
commit | 45a17142524b79254b0b87a8385ee36cbfac79ce (patch) | |
tree | 04865c94ae41a9740dc4a52f693cbd830f4c125d /src/enums | |
parent | 7e8f6e26d5e2d1c560092cf72bc4f7f98f7fba07 (diff) | |
download | mv-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.gz mv-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.bz2 mv-45a17142524b79254b0b87a8385ee36cbfac79ce.tar.xz mv-45a17142524b79254b0b87a8385ee36cbfac79ce.zip |
Fix code style.
Diffstat (limited to 'src/enums')
-rw-r--r-- | src/enums/simpletypes/intdefines.h | 2 |
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 |