|
@@ -818,13 +818,13 @@ implementation
|
|
if torddef(left.resulttype.def).size>torddef(right.resulttype.def).size then
|
|
if torddef(left.resulttype.def).size>torddef(right.resulttype.def).size then
|
|
begin
|
|
begin
|
|
right:=ctypeconvnode.create_internal(right,left.resulttype);
|
|
right:=ctypeconvnode.create_internal(right,left.resulttype);
|
|
- ttypeconvnode(right).convtype:=tc_bool_2_int;
|
|
|
|
|
|
+ ttypeconvnode(right).convtype:=tc_bool_2_bool;
|
|
resulttypepass(right);
|
|
resulttypepass(right);
|
|
end
|
|
end
|
|
else if torddef(left.resulttype.def).size<torddef(right.resulttype.def).size then
|
|
else if torddef(left.resulttype.def).size<torddef(right.resulttype.def).size then
|
|
begin
|
|
begin
|
|
left:=ctypeconvnode.create_internal(left,right.resulttype);
|
|
left:=ctypeconvnode.create_internal(left,right.resulttype);
|
|
- ttypeconvnode(left).convtype:=tc_bool_2_int;
|
|
|
|
|
|
+ ttypeconvnode(left).convtype:=tc_bool_2_bool;
|
|
resulttypepass(left);
|
|
resulttypepass(left);
|
|
end;
|
|
end;
|
|
case nodetype of
|
|
case nodetype of
|