diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-02-20 11:50:37 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:58 +0200 |
commit | 615093ac7f3f647855b60b3a65352140bc44b378 (patch) | |
tree | 97323288bcaeb05081171a6d012496f02062c0fe /src | |
parent | b39bafd7417119c85026b6d4ba417497ed2b225f (diff) |
Fix crash that happens sometimes when building cmake project
Diffstat (limited to 'src')
-rw-r--r-- | src/FileUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |