mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 09:19:45 +02:00
* node_not_zero can be apply to int->int conversion only if no data is cut off
This commit is contained in:
parent
6cd75b75c3
commit
ec76f13bd7
@ -1735,7 +1735,7 @@ implementation
|
||||
begin
|
||||
result:=(is_constintnode(n) and (get_int_value(n)<>0)) or
|
||||
((n.resultdef.typ=orddef) and ((torddef(n.resultdef).low>0) or (torddef(n.resultdef).high<0))) or
|
||||
((n.nodetype=typeconvn) and (ttypeconvnode(n).convtype=tc_int_2_int) and node_not_zero(ttypeconvnode(n).left)) or
|
||||
((n.nodetype=typeconvn) and (ttypeconvnode(n).convtype=tc_int_2_int) and (n.resultdef.size>=ttypeconvnode(n).resultdef.size) and node_not_zero(ttypeconvnode(n).left)) or
|
||||
((n.nodetype=orn) and (node_not_zero(taddnode(n).left) or node_not_zero(taddnode(n).right)));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user