From f32b9f3653b08bbba97be06df92fbb07380a0349 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 26 Jun 2022 22:22:11 +0200 Subject: bisekt: round(), damit Vergleiche stabil werden --- fhunit.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhunit.pas b/fhunit.pas index d75ce95..a1b2cbf 100644 --- a/fhunit.pas +++ b/fhunit.pas @@ -292,12 +292,12 @@ begin ma:=count; while mi=count) or (items[neu].zeit=count) or (round((items[neu].zeit - zeit) * 6 * 24) < 0) then begin inc(neu); mi:=neu; continue; end; - if items[neu].zeit>zeit then begin + if round((items[neu].zeit - zeit) * 6 * 24) > 0 then begin ma:=neu; continue; end; -- cgit v1.2.3-54-g00ecf