diff --git a/tinyexpr.cpp b/tinyexpr.cpp index ddffcb2..1fdcf32 100644 --- a/tinyexpr.cpp +++ b/tinyexpr.cpp @@ -787,7 +787,7 @@ namespace te_builtins } const uint32_t intVal{ static_cast(val) }; - const decltype(intVal) result{ static_cast(~intVal) }; + const decltype(intVal) result{ ~intVal }; return static_cast(result); } @@ -813,7 +813,7 @@ namespace te_builtins } const uint64_t intVal{ static_cast(val) }; - const decltype(intVal) result{ static_cast(~intVal) }; + const decltype(intVal) result{ ~intVal }; return static_cast(result); }