diff options
Diffstat (limited to 'src/generic/enum.hpp')
-rw-r--r-- | src/generic/enum.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generic/enum.hpp b/src/generic/enum.hpp index a8a1088..5c0fbef 100644 --- a/src/generic/enum.hpp +++ b/src/generic/enum.hpp @@ -197,7 +197,7 @@ public: static E inced(E v) { - return E(U(v) + 1); + return static_cast<E>(static_cast<U>(v) + 1); } }; |