浏览代码

* kill warnings about non-longint code parameters with val()
which popped up again after yesterday's patches to the
potential range error warnings

git-svn-id: trunk@2508 -

Jonas Maebe 19 年之前
父节点
当前提交
cd70b38e8b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      compiler/ninl.pas

+ 2 - 1
compiler/ninl.pas

@@ -1060,7 +1060,8 @@ implementation
         if assigned(orgcode) then
         if assigned(orgcode) then
           addstatement(newstatement,cassignmentnode.create(
           addstatement(newstatement,cassignmentnode.create(
               orgcode,
               orgcode,
-              ctemprefnode.create(tempcode)));
+              ctypeconvnode.create_internal(
+                ctemprefnode.create(tempcode),orgcode.resulttype)));
 
 
         { release the temp if we allocated one }
         { release the temp if we allocated one }
         if assigned(tempcode) then
         if assigned(tempcode) then