From 8c54008d0c28adf98b60b7f1157be372006e3517 Mon Sep 17 00:00:00 2001 From: yury Date: Fri, 21 Dec 2007 21:19:32 +0000 Subject: [PATCH] * Fixed condition which was evaluated to true at compile time, and code for else block was not generated at all. "Dead code" warning warned about it. * Removed unused local var. git-svn-id: trunk@9496 - --- rtl/inc/wustrings.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rtl/inc/wustrings.inc b/rtl/inc/wustrings.inc index 47e7a16e06..4c9d4dfad3 100644 --- a/rtl/inc/wustrings.inc +++ b/rtl/inc/wustrings.inc @@ -1888,7 +1888,7 @@ begin p^:=widechar(nc); inc(index); end - else if (nc<=$10ffff) then + else if (dword(nc)<=$10ffff) then begin p^:=widechar((nc - $10000) shr 10 + $d800); (p+1)^:=widechar((nc - $10000) and $3ff + $dc00); @@ -1907,7 +1907,6 @@ function UCS4StringToWideString(const s : UCS4String) : WideString; var i : SizeInt; resindex : SizeInt; - len : longint; begin SetLength(result,length(s)); resindex:=1;