diff options
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/future.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/future.cpp b/libcxx/src/future.cpp index d5c55b69d11..29357112df9 100644 --- a/libcxx/src/future.cpp +++ b/libcxx/src/future.cpp @@ -29,7 +29,7 @@ __future_error_category::name() const _NOEXCEPT string __future_error_category::message(int ev) const { - switch (ev) + switch (static_cast<future_errc>(ev)) { case future_errc::broken_promise: return string("The associated promise has been destructed prior " |