diff options
Diffstat (limited to 'third_party/nix')
-rw-r--r-- | third_party/nix/src/libmain/shared.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libmain/shared.cc b/third_party/nix/src/libmain/shared.cc index cd4b7879fd21..331ea6b3a9d2 100644 --- a/third_party/nix/src/libmain/shared.cc +++ b/third_party/nix/src/libmain/shared.cc @@ -307,7 +307,7 @@ int handleExceptions(const std::string& programName, if (!e.prefix().empty() && !settings.showTrace) { LOG(INFO) << "(use '--show-trace' to show detailed location information)"; } - return e.status; + return static_cast<int>(e.status); } catch (std::bad_alloc& e) { LOG(ERROR) << error << "failed to allocate: " << e.what(); return 1; |