From 794f7e30750d21cbdae9644626c14de3f806ade5 Mon Sep 17 00:00:00 2001 From: Blake-Madden Date: Sun, 14 Apr 2024 07:36:01 -0400 Subject: [PATCH] Remove unnecessary casts --- tinyexpr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }