From 57ee96ef86caa97e5918e9f8ae1d4de5738331a8 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 5 Sep 2012 18:49:48 +0000 Subject: [PATCH] * compilation on non x86 fixed git-svn-id: trunk@22330 - --- rtl/inc/generic.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/inc/generic.inc b/rtl/inc/generic.inc index be0feeae1c..5175fb8fe1 100644 --- a/rtl/inc/generic.inc +++ b/rtl/inc/generic.inc @@ -2434,7 +2434,7 @@ function BsfQWord(Const AValue : QWord): cardinal; result:=$ff; if lo(AValue) <> 0 then result:=BsfDWord(lo(AValue)) - else hi(AValue) <> 0 then + else if hi(AValue) <> 0 then result:=BsfDWord(hi(AValue)) + 32; end; {$endif}