[cfe-commits] [libcxx] r149630 - /libcxx/trunk/src/future.cpp
Howard Hinnant
hhinnant at apple.com
Thu Feb 2 12:31:36 PST 2012
Author: hhinnant
Date: Thu Feb 2 14:31:36 2012
New Revision: 149630
URL: http://llvm.org/viewvc/llvm-project?rev=149630&view=rev
Log:
Explicitly convert int to future_errc. Fixes http://llvm.org/bugs/show_bug.cgi?id=11428
Modified:
libcxx/trunk/src/future.cpp
Modified: libcxx/trunk/src/future.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/future.cpp?rev=149630&r1=149629&r2=149630&view=diff
==============================================================================
--- libcxx/trunk/src/future.cpp (original)
+++ libcxx/trunk/src/future.cpp Thu Feb 2 14:31:36 2012
@@ -29,7 +29,7 @@
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 "
More information about the cfe-commits
mailing list