Browse Source

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

git-svn-id: branches/i8086@24217 -
nickysn 12 years ago
parent
commit
3c6df5bedc
1 changed files with 1 additions and 11 deletions
  1. 1 11
      compiler/ninl.pas

+ 1 - 11
compiler/ninl.pas

@@ -160,16 +160,6 @@ implementation
 
 
 
 
     function get_str_int_func(def: tdef): string;
     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
     var
       ordtype: tordtype;
       ordtype: tordtype;
     begin
     begin
@@ -193,7 +183,7 @@ implementation
         end
         end
       else
       else
         begin
         begin
-          if ordtype = highest_unsigned_type then
+          if is_nativeuint(def) then
             exit('uint')
             exit('uint')
           else
           else
             exit('sint');
             exit('sint');