Skip to content

Commit

Permalink
- Simplify tosigned() method inside of binangle class.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjr4077au committed Jul 23, 2022
1 parent abb7f87 commit 5dce9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/core/binaryangle.h
Expand Up @@ -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;
Expand Down

0 comments on commit 5dce9c8

Please sign in to comment.