From 54cacc63a57073926eb79959eb0399ce592c5438 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sat, 24 May 2003 11:59:42 +0000 Subject: [PATCH] * fixed integer typeconversion problems --- compiler/ncgcnv.pas | 15 ++++++++++----- compiler/ncgutil.pas | 16 ++++++++++++++-- compiler/powerpc/cgcpu.pas | 7 +++++-- 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/compiler/ncgcnv.pas b/compiler/ncgcnv.pas index dc4c651185..e60c95e30d 100644 --- a/compiler/ncgcnv.pas +++ b/compiler/ncgcnv.pas @@ -93,18 +93,20 @@ interface if (ressize<>leftsize) and not is_void(left.resulttype.def) then begin - location_copy(location,left.location); { reuse a loc_reference when the newsize is smaller than than the original, else load it to a register } if (location.loc in [LOC_REFERENCE,LOC_CREFERENCE]) and (ressize fromsize) and not(fromsize in [OS_32,OS_S32])) then begin - case fromsize of + case tosize of OS_8: list.concat(taicpu.op_reg_reg_const_const_const(A_RLWINM, reg2,reg1,0,31-8+1,31)); @@ -2442,7 +2442,10 @@ begin end. { $Log$ - Revision 1.95 2003-05-23 18:51:26 jonas + Revision 1.96 2003-05-24 11:59:42 jonas + * fixed integer typeconversion problems + + Revision 1.95 2003/05/23 18:51:26 jonas * fixed support for nested procedures and more parameters than those which fit in registers (untested/probably not working: calling a nested procedure from a deeper nested procedure)