From 314ed8d05c39703e4128ce0b74f28533b6129926 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 20 Apr 2021 22:16:29 -0500 Subject: [PATCH] [ox/std] Reorder Error fields to allow for better packing --- deps/ox/src/ox/std/error.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/error.hpp b/deps/ox/src/ox/std/error.hpp index a2257598..c1f78c75 100644 --- a/deps/ox/src/ox/std/error.hpp +++ b/deps/ox/src/ox/std/error.hpp @@ -20,10 +20,10 @@ namespace ox { using ErrorCode = uint16_t; struct [[nodiscard]] Error { - ErrorCode errCode = 0; const char *msg = nullptr; const char *file = nullptr; uint16_t line = 0; + ErrorCode errCode = 0; explicit constexpr Error(ErrorCode ec = 0) noexcept: errCode(ec) { }