diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-23 19:16:48 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-09-23 19:16:48 +0000 |
commit | 7a6f77d6472a8f23b162f8178f8462db56a871c5 (patch) | |
tree | e48bb555de85c80d06ba86e87eaaeb698c441e37 /rtl/unix | |
parent | ca732d589c93f0de59514cd7e2e0b215deed5637 (diff) | |
download | fpc-7a6f77d6472a8f23b162f8178f8462db56a871c5.tar.gz |
* and one more fix to prevent endless loops
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19196 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'rtl/unix')
-rw-r--r-- | rtl/unix/winiconv.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtl/unix/winiconv.inc b/rtl/unix/winiconv.inc index 6a9cab0d4b..2a052b1769 100644 --- a/rtl/unix/winiconv.inc +++ b/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; |