From e8febf7f4be516836e4e089a75834a56f650047b Mon Sep 17 00:00:00 2001 From: aruhan Date: Mon, 5 Jan 2015 22:33:18 +0900 Subject: [PATCH] Fix format using wostream produces wrong results --- format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.h b/format.h index 8c84e441..2baa259a 100644 --- a/format.h +++ b/format.h @@ -2070,7 +2070,7 @@ void format(BasicFormatter &f, const Char *&format_str, const T &value) { internal::Value &arg_value = arg; std::basic_string str = os.str(); arg_value = internal::MakeValue(str); - arg.type = internal::Arg::STRING; + arg.type = static_cast(internal::MakeValue::type(str)); format_str = f.format(format_str, arg); }