From 3d92a87bef0c963fe24312e9365826cb896e9f73 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 11 Jun 2025 03:45:34 +0000 Subject: [PATCH] fix(kernel/std): cast lhs and rhs to __UINTPTR_TYPE__ --- Kernel/include_std/algorithm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/include_std/algorithm b/Kernel/include_std/algorithm index ed1d7282..5c8392ca 100644 --- a/Kernel/include_std/algorithm +++ b/Kernel/include_std/algorithm @@ -428,7 +428,7 @@ namespace std { if (__builtin_is_constant_evaluated()) return lhs < rhs; - return (uintptr_t)lhs < (uintptr_t)rhs; + return (__UINTPTR_TYPE__)lhs < (__UINTPTR_TYPE__)rhs; } };