Normalize methods for numeric->string conversions

This commit is contained in:
Jason Turner
2015-06-19 06:18:49 -06:00
parent 835b5a90af
commit 6d632f6aa4

View File

@@ -523,11 +523,11 @@ namespace chaiscript
case Common_Types::t_int64:
return std::to_string(get_as<int64_t>());
case Common_Types::t_double:
return std::to_string(get_as<double>());
return to_string_aux<double>(bv);
case Common_Types::t_float:
return std::to_string(get_as<float>());
return to_string_aux<float>(bv);
case Common_Types::t_long_double:
return std::to_string(get_as<long double>());
return to_string_aux<long double>(bv);
}
throw chaiscript::detail::exception::bad_any_cast();