mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-01 11:51:01 +02:00
* fixed range error in case node distance calculation
git-svn-id: trunk@9662 -
This commit is contained in:
parent
47c2cc095b
commit
03e9f652fd
@ -767,7 +767,10 @@ implementation
|
||||
distv:=max_label+min_label
|
||||
else
|
||||
distv:=max_label-min_label;
|
||||
dist:=distv.uvalue;
|
||||
if (distv>=0) then
|
||||
dist:=distv.uvalue
|
||||
else
|
||||
dist:=-distv.svalue;
|
||||
|
||||
{ optimize for size ? }
|
||||
if cs_opt_size in current_settings.optimizerswitches then
|
||||
|
Loading…
Reference in New Issue
Block a user