From 60f3a9d3449ec64e3149486011cd8a8f19fb5aca Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Sun, 23 Jul 2023 06:17:10 +0000 Subject: [PATCH] math/fp: negation operator declaration --- math/fp.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/fp.hpp b/math/fp.hpp index 7b5b6eb..7969aa7 100644 --- a/math/fp.hpp +++ b/math/fp.hpp @@ -41,7 +41,7 @@ struct fp return value >> 16; } - constexpr inline fp operator-() + constexpr inline fp operator-() const { return fp(-value, fp_raw_tag{}); }