2
0
Эх сурвалжийг харах

* fixed tppufile.getaint for 8/16-bit CPUs

git-svn-id: trunk@24484 -
nickysn 12 жил өмнө
parent
commit
0d58fd6cd0
1 өөрчлөгдсөн 6 нэмэгдсэн , 5 устгасан
  1. 6 5
      compiler/ppu.pas

+ 6 - 5
compiler/ppu.pas

@@ -790,11 +790,12 @@ begin
       result:=0;
     end;
 {$else not generic_cpu}
-{$ifdef cpu64bitalu}
-  result:=getint64
-{$else cpu64bitalu}
-  result:=getlongint;
-{$endif cpu64bitalu}
+  case sizeof(aint) of
+    8: result:=getint64;
+    4: result:=getlongint;
+    2: result:=smallint(getword);
+    1: result:=shortint(getbyte);
+  end;
 {$endif not generic_cpu}
 end;