diff --git a/compiler/types.pas b/compiler/types.pas index 62caa315f6..1289c30740 100644 --- a/compiler/types.pas +++ b/compiler/types.pas @@ -265,15 +265,16 @@ implementation constint, constbool, constchar, - constpointer, constord : - equal_constsym:=(sym1.value=sym2.value); + equal_constsym:=(sym1.valueord=sym2.valueord); + constpointer : + equal_constsym:=(sym1.valueordptr=sym2.valueordptr); conststring,constresourcestring : begin if sym1.len=sym2.len then begin - p1:=pchar(tpointerord(sym1.value)); - p2:=pchar(tpointerord(sym2.value)); + p1:=pchar(sym1.valueptr); + p2:=pchar(sym2.valueptr); pend:=p1+sym1.len; while (p1real for delphi mode + + Revision 1.45 2001/08/19 21:11:21 florian * some bugs fix: - overload; with external procedures fixed - better selection of routine to do an overloaded