Преглед изворни кода

* and one more fix to prevent endless loops

git-svn-id: trunk@19196 -
Jonas Maebe пре 14 година
родитељ
комит
258869c8f1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      rtl/unix/winiconv.inc

+ 1 - 1
rtl/unix/winiconv.inc

@@ -360,7 +360,7 @@
       l:=low(win2iconv_arr);
       h:=high(win2iconv_arr);
       repeat
-        i:=(l+h) shr 1;
+        i:=(l+h+1) shr 1;
         ccp:=win2iconv_arr[i].cp;
         if cp=ccp then
           break;