- Simplify tosigned() method inside of binangle class.

This commit is contained in:
Mitchell Richters 2022-07-23 12:43:54 +10:00
parent abb7f87de3
commit 5dce9c8ff2

View file

@ -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;