From 10333e8496689fb1776fc294a725234166e26b30 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 8 Oct 2018 01:37:48 +0000 Subject: [PATCH] scst/include/backport.h: Avoid mixed-signedness comparisons git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7500 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/backport.h b/scst/include/backport.h index f322549a9..8f19fba25 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -406,7 +406,7 @@ static inline u32 int_sqrt64(u64 x) for (i = 8 * sizeof(r) - 2; i >= 0; i--) { s = r + (1 << i); - if (1ll * s * s <= x) + if (1ull * s * s <= x) r = s; }