From 108379f121260e09c008230b6445080850ee4168 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 16 Mar 2025 23:46:59 +0200 Subject: [PATCH] fix UB shift --- src/builtins/grade.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/grade.h b/src/builtins/grade.h index 0bb5b19c..a4914466 100644 --- a/src/builtins/grade.h +++ b/src/builtins/grade.h @@ -549,7 +549,7 @@ B GRADE_CAT(c2)(B t, B w, B x) { #if SINGELI u8 k = elwByteLog(we); - u8 rl = wia<128 ? 0 : wia<(1<<15) ? 1 : wia<(1<<31) ? 2 : 3; + u8 rl = wia<128 ? 0 : wia<(1<<15) ? 1 : wia<(1U<<31) ? 2 : 3; void *rp = m_tyarrc(&r, 1<