From 5dce9c8ff2bd4426e2096019bb2d93aa898daf10 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 23 Jul 2022 12:43:54 +1000 Subject: [PATCH] - Simplify `tosigned()` method inside of `binangle` class. --- source/core/binaryangle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/binaryangle.h b/source/core/binaryangle.h index 8eca29581..380817d47 100644 --- a/source/core/binaryangle.h +++ b/source/core/binaryangle.h @@ -124,7 +124,7 @@ class binangle friend FSerializer &Serialize(FSerializer &arc, const char *key, binangle &obj, binangle *defval); - constexpr int32_t tosigned() const { return value > INT32_MAX ? int64_t(value) - UINT32_MAX : value; } + constexpr int32_t tosigned() const { return int32_t(value); } public: binangle() = default;