Add missing code in get_value_float() function.

This commit is contained in:
Nick D'Ademo 2014-10-19 09:14:33 +11:00
parent 72d57eed1c
commit 6f0b199a09

View File

@ -3784,7 +3784,19 @@ PUGI__NS_BEGIN
PUGI__FN float get_value_float(const char_t* value, float def, bool* def_set)
{
if (!value) return def;
if (!value)
{
if(def_set)
{
*def_set = true;
}
return def;
}
if(def_set)
{
*def_set = false;
}
#ifdef PUGIXML_WCHAR_MODE
return static_cast<float>(wcstod(value, 0));