فهرست منبع

+ support u64bit as well in defutil.range_to_basetype

git-svn-id: branches/i8086@24173 -
nickysn 12 سال پیش
والد
کامیت
2486009d37
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      compiler/defutil.pas

+ 3 - 1
compiler/defutil.pas

@@ -392,8 +392,10 @@ implementation
          range_to_basetype:=s32bit
         else if (l>=low(cardinal)) and (h<=high(cardinal)) then
          range_to_basetype:=u32bit
+        else if (l>=low(int64)) and (h<=high(int64)) then
+         range_to_basetype:=s64bit
         else
-         range_to_basetype:=s64bit;
+         range_to_basetype:=u64bit;
       end;