Skip to content

Commit

Permalink
Fix Windows compilation with -fno-exceptions (#405)
Browse files Browse the repository at this point in the history
(cherry picked from commit 15d0f32)
  • Loading branch information
JanHellwig authored and foonathan committed Oct 31, 2016
1 parent 2baf2a5 commit 63639cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fmt/posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fmt::LongLong fmt::File::size() const {
if (size_lower == INVALID_FILE_SIZE) {
DWORD error = GetLastError();
if (error != NO_ERROR)
throw WindowsError(GetLastError(), "cannot get file size");
FMT_THROW(WindowsError(GetLastError(), "cannot get file size"));
}
fmt::ULongLong long_size = size_upper;
return (long_size << sizeof(DWORD) * CHAR_BIT) | size_lower;
Expand Down

0 comments on commit 63639cb

Please sign in to comment.