瀏覽代碼

* use is_nativeuint() in ninl.get_str_int_func(), instead of the ifdef sequence

git-svn-id: branches/i8086@24217 -
nickysn 12 年之前
父節點
當前提交
3c6df5bedc
共有 1 個文件被更改,包括 1 次插入11 次删除
  1. 1 11
      compiler/ninl.pas

+ 1 - 11
compiler/ninl.pas

@@ -160,16 +160,6 @@ implementation
 
 
     function get_str_int_func(def: tdef): string;
-    const
-{$if defined(cpu64bitaddr)}
-      highest_unsigned_type = u64bit;
-{$elseif defined(cpu32bitaddr)}
-      highest_unsigned_type = u32bit;
-{$elseif defined(cpu16bitalu)}
-      highest_unsigned_type = u16bit;
-{$elseif defined(cpu8bitalu)}
-      highest_unsigned_type = u8bit;
-{$endif}
     var
       ordtype: tordtype;
     begin
@@ -193,7 +183,7 @@ implementation
         end
       else
         begin
-          if ordtype = highest_unsigned_type then
+          if is_nativeuint(def) then
             exit('uint')
           else
             exit('sint');