summaryrefslogtreecommitdiff
path: root/packages/iconvenc
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-12-23 21:06:52 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2009-12-23 21:06:52 +0000
commita3b60f7ef1f343caf9841e91ab855a530b840bf5 (patch)
treea9b0840e98e32b62e40fda8f2dcda7b32cf689fd /packages/iconvenc
parent69754e241be7544fdc52a1c41e0ad663d80a21b4 (diff)
downloadfpc-a3b60f7ef1f343caf9841e91ab855a530b840bf5.tar.gz
* fixed compilation with range checking enabled
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@14469 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/iconvenc')
-rw-r--r--packages/iconvenc/src/iconvert.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/iconvenc/src/iconvert.inc b/packages/iconvenc/src/iconvert.inc
index c0d265e269..564e4386c1 100644
--- a/packages/iconvenc/src/iconvert.inc
+++ b/packages/iconvenc/src/iconvert.inc
@@ -50,7 +50,7 @@ begin
// iconv has a buffer that needs flushing, specially if the last char is not #0
iconv(H, nil, nil, @Dst, @Outlen);
lerr:=cerrno;
- if (iconvres=Cint(-1)) and (lerr=ESysE2BIG) then
+ if (iconvres=size_t(-1)) and (lerr=ESysE2BIG) then
begin
Offset:=Dst-PChar(Res);
SetLength(Res, Length(Res)+InLen*2+5); // 5 is minimally one utf-8 char