Browse Source

* fix range check error

git-svn-id: trunk@1439 -
peter 20 năm trước cách đây
mục cha
commit
d5af8ed9a0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/pdecvar.pas

+ 1 - 1
compiler/pdecvar.pas

@@ -561,7 +561,7 @@ implementation
                     setconstn :
                       p.default:=plongint(tsetconstnode(pt).value_set)^;
                     ordconstn :
-                      p.default:=tordconstnode(pt).value;
+                      p.default:=longint(tordconstnode(pt).value);
                     niln :
                       p.default:=0;
                     realconstn: