From ae028b1e1d403a2603ace8b2a0061bda192aa002 Mon Sep 17 00:00:00 2001 From: sergei Date: Fri, 10 Dec 2010 01:51:57 +0000 Subject: [PATCH] * 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 - --- compiler/x86/agx86int.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/x86/agx86int.pas b/compiler/x86/agx86int.pas index 09c51a2ef1..af95333ae8 100644 --- a/compiler/x86/agx86int.pas +++ b/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