From 615093ac7f3f647855b60b3a65352140bc44b378 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 20 Feb 2020 11:50:37 +0100 Subject: Fix crash that happens sometimes when building cmake project --- src/FileUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileUtil.cpp b/src/FileUtil.cpp index b78e257..a03161f 100644 --- a/src/FileUtil.cpp +++ b/src/FileUtil.cpp @@ -266,7 +266,7 @@ namespace sibs std::sort(files.begin(), files.end(), [](const FileWithTimestamp &filedata_a, const FileWithTimestamp &filedata_b) { if(filedata_a.last_modified.tv_sec < filedata_b.last_modified.tv_sec) return true; - else if(filedata_a.last_modified.tv_sec == filedata_b.last_modified.tv_sec && filedata_a.last_modified.tv_nsec <= filedata_b.last_modified.tv_nsec) + else if(filedata_a.last_modified.tv_sec == filedata_b.last_modified.tv_sec && filedata_a.last_modified.tv_nsec < filedata_b.last_modified.tv_nsec) return true; else return false; -- cgit v1.2.3