Skip to content

Commit b68c9f2

Browse files
committed
typo in __stdc_trailing_zeros_usize
Signed-off-by: june-fish <git@june.fish>
1 parent fd605bc commit b68c9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kernel/include/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static inline __UINT64_TYPE__ __stdc_trailing_zeros_u64(__UINT64_TYPE__ value) {
209209

210210
[[gnu::const]]
211211
static inline __SIZE_TYPE__ __stdc_trailing_zeros_usize(__SIZE_TYPE__ value) {
212-
return __builtin_ctzg((__UINT64_TYPE__)~value, -1) + 1U;
212+
return __builtin_ctzg((__SIZE_TYPE__)~value, -1) + 1U;
213213
}
214214

215215
#define stdc_trailing_zeros(VALUE) \

0 commit comments

Comments
 (0)