浏览代码

* fixed compilation with range checking enabled

git-svn-id: trunk@14469 -
Jonas Maebe 15 年之前
父节点
当前提交
18e3f01552
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/iconvenc/src/iconvert.inc

+ 1 - 1
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 has a buffer that needs flushing, specially if the last char is not #0
     iconv(H, nil, nil, @Dst, @Outlen);
     iconv(H, nil, nil, @Dst, @Outlen);
     lerr:=cerrno;
     lerr:=cerrno;
-    if (iconvres=Cint(-1)) and (lerr=ESysE2BIG) then
+    if (iconvres=size_t(-1)) and (lerr=ESysE2BIG) then
       begin
       begin
         Offset:=Dst-PChar(Res);
         Offset:=Dst-PChar(Res);
         SetLength(Res, Length(Res)+InLen*2+5); // 5 is minimally one utf-8 char
         SetLength(Res, Length(Res)+InLen*2+5); // 5 is minimally one utf-8 char