Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ayzk committed Feb 3, 2022
1 parent 2d004b2 commit 1260380
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SZ3/utils/FileUtil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace SZ {
std::ifstream fin(file, std::ios::binary);
if (!fin) {
std::cout << " Error, Couldn't find the file: " << file << "\n";
return;
exit(0);
}
fin.seekg(0, std::ios::end);
const size_t num_elements = fin.tellg() / sizeof(Type);
Expand All @@ -61,7 +61,7 @@ namespace SZ {
std::ifstream fin(file, std::ios::binary);
if (!fin) {
std::cout << " Error, Couldn't find the file: " << file << "\n";
return 0;
exit(0);
}
fin.seekg(0, std::ios::end);
const size_t num_elements = fin.tellg() / sizeof(Type);
Expand Down

0 comments on commit 1260380

Please sign in to comment.