Browse Source

+ support u64bit as well in defutil.range_to_basetype

git-svn-id: branches/i8086@24173 -
nickysn 12 years ago
parent
commit
2486009d37
1 changed files with 3 additions and 1 deletions
  1. 3 1
      compiler/defutil.pas

+ 3 - 1
compiler/defutil.pas

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