From 016639261297966220811cfb12e5be02324f06ba Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 23 Feb 2022 23:40:02 -0600 Subject: [PATCH] [ox/std] Make ResizedInt use static_cast to get better error messages (synced from 642b2b04b713d2bee36bedc693dd6ac381c8b436) --- src/ox/std/types.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/std/types.hpp b/src/ox/std/types.hpp index 3df5dce3c..6c66b1d31 100644 --- a/src/ox/std/types.hpp +++ b/src/ox/std/types.hpp @@ -130,7 +130,7 @@ template using Unsigned = Uint; // ResizedInt retains the sign while granting a new size -template +template(-1) < static_cast(0)> struct ResizedInt { };