From 688bc74ce0ab320cdfc6e73f6db75612968f74c4 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 4 Jan 2025 19:12:08 +0100 Subject: Fix a bunch of warnings --- asl/status.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'asl/status.hpp') diff --git a/asl/status.hpp b/asl/status.hpp index 4638493..3d93213 100644 --- a/asl/status.hpp +++ b/asl/status.hpp @@ -21,12 +21,14 @@ class status static constexpr void* status_to_payload(status_code code) { - return code == status_code::ok ? nullptr : bit_cast(((uintptr_t)code << 1) | 1); + return code == status_code::ok + ? nullptr + : bit_cast((static_cast(code) << 1) | 1); } static constexpr status_code payload_to_status(void* payload) { - return (status_code)(bit_cast(payload) >> 1); + return static_cast(bit_cast(payload) >> 1); } status_code code_internal() const; -- cgit