From 05f36bc47600300c84f5e897cddbd93b2fe39382 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Fri, 28 Sep 2012 13:26:04 -0400 Subject: [PATCH] ck_internal: Follow-up to previous commit. --- src/ck_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ck_internal.h b/src/ck_internal.h index 8e27019..604487a 100644 --- a/src/ck_internal.h +++ b/src/ck_internal.h @@ -88,7 +88,7 @@ ck_internal_bsf(unsigned long v) const unsigned int s = sizeof(unsigned long) * 8 - 1; for (i = 0; i < s; i++) { - if (v & (1U << (s - i))) + if (v & (1UL << (s - i))) return i; } @@ -102,7 +102,7 @@ ck_internal_bsf_64(uint64_t v) const unsigned int s = sizeof(unsigned long) * 8 - 1; for (i = 0; i < s; i++) { - if (v & (1U << (63U - i))) + if (v & (1ULL << (63U - i))) return i; }