Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use fuzzy matches on times to work around double.ToString() stupidity…
… (diakopter)
  • Loading branch information
sorear committed Mar 6, 2011
1 parent 7cc8c06 commit c416de7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NieczaCompiler.pm6
Expand Up @@ -71,7 +71,9 @@ method !up_to_date($mod) {
say "$p.key() resolves to $filename now, was $p.value.[0]" if $.verbose;
return False;
}
if $modtime > $p.value.[1] {
# number storage isn't reliable atm and frequently causes small
# errors, especially on Windows
if $modtime - $p.value.[1] > 0.001 {
say "$p.key() mod-time increased from $p.value.[1] to $modtime" if $.verbose;
return False;
}
Expand Down

0 comments on commit c416de7

Please sign in to comment.