* fixed range error in case node distance calculation

git-svn-id: trunk@9662 -
This commit is contained in:
Jonas Maebe 2008-01-06 23:18:12 +00:00
parent 47c2cc095b
commit 03e9f652fd

View File

@ -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