From d9c08df888a4dc63107073db70479449020b151d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Nov 2018 16:05:01 +0000 Subject: [PATCH] Merge r7500 from trunk git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7752 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; }