diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-02-02 20:31:36 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-02-02 20:31:36 +0000 |
commit | be745c8cce20d0ed25b2a971019139935f72caa4 (patch) | |
tree | 4d87aa074b3c5c8943e63e8a03addb42db6e5e19 /libcxx/src | |
parent | fd72fbef4138fa69f1910022e5f69f36af9ab32e (diff) | |
download | bcm5719-llvm-be745c8cce20d0ed25b2a971019139935f72caa4.tar.gz bcm5719-llvm-be745c8cce20d0ed25b2a971019139935f72caa4.zip |
Explicitly convert int to future_errc. Fixes http://llvm.org/bugs/show_bug.cgi?id=11428
llvm-svn: 149630
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 " |