|
@@ -377,7 +377,7 @@ implementation
|
|
}
|
|
}
|
|
begin
|
|
begin
|
|
{ for 0 and 1 no aligning is needed }
|
|
{ for 0 and 1 no aligning is needed }
|
|
- if a<=1 then
|
|
|
|
|
|
+ if (a<=1) or (i=0) then
|
|
result:=i
|
|
result:=i
|
|
else
|
|
else
|
|
result:=((i-1+a) div a) * a;
|
|
result:=((i-1+a) div a) * a;
|