X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/eca2c8e0a8aad79c7dc7738346d265f973428995..1be497efffd6a881a2b71226df816dbad37bd1ef:/btime.pas diff --git a/btime.pas b/btime.pas index a3428e8..8826a4d 100644 --- a/btime.pas +++ b/btime.pas @@ -255,7 +255,7 @@ begin gettimeofday(tv); sec := tv.tv_sec; {$ifndef cpu64} - if (sec < 0) then inc(sec,$100000000); //tv_sec is 32 bits + if (sec < -1) then inc(sec,$100000000); //tv_sec is 32 bits. allow -1 for invalid result {$endif} result := sec; end;