Browse Source

Fix Windows compilation.

pull/1/head
Sam Hocevar 4 years ago
parent
commit
83370c7293
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/lol/private/sys/file.h

+ 1
- 1
include/lol/private/sys/file.h View File

@@ -31,7 +31,7 @@ static inline bool read(std::string const &path, T &data)
if (file_size < 0)
return false;
f.seekg(0, std::ios::beg);
data.resize((file_size + sizeof(U) - 1) / sizeof(U));
data.resize((size_t(file_size) + sizeof(U) - 1) / sizeof(U));
f.read((char *)data.data(), file_size);
return !f.fail();
}


Loading…
Cancel
Save