Browse Source

* Intel assembler writer, don't truncate written values to 32 bits, as this code is also used for x86_64. Fixes Mantis #18020.

git-svn-id: trunk@16528 -
sergei 14 years ago
parent
commit
ae028b1e1d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/x86/agx86int.pas

+ 2 - 2
compiler/x86/agx86int.pas

@@ -304,7 +304,7 @@ implementation
           top_reg :
             AsmWrite(masm_regname(o.reg));
           top_const :
-            AsmWrite(tostr(longint(o.val)));
+            AsmWrite(tostr(o.val));
           top_ref :
             begin
               if o.ref^.refaddr=addr_no then
@@ -384,7 +384,7 @@ implementation
         top_reg :
           AsmWrite(masm_regname(o.reg));
         top_const :
-          AsmWrite(tostr(longint(o.val)));
+          AsmWrite(tostr(o.val));
         top_ref :
           { what about lcall or ljmp ??? }
           begin