Fixed compilation warnings on BCC

git-svn-id: http://pugixml.googlecode.com/svn/trunk@128 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2009-09-17 18:14:05 +00:00
parent 01d8a24051
commit fcce7152ac
2 changed files with 2 additions and 2 deletions

View File

@ -1841,7 +1841,7 @@ namespace pugi
bool xml_attribute::as_bool() const
{
// only look at first char
char first = (_attr && _attr->value) ? *_attr->value : 0;
char first = (_attr && _attr->value) ? *_attr->value : '\0';
// 1*, t* (true), T* (True), y* (yes), Y* (YES)
return (first == '1' || first == 't' || first == 'T' || first == 'y' || first == 'Y');

View File

@ -343,7 +343,7 @@ namespace
}
}
return buf;
return std::string(buf);
}
double convert_string_to_number(const char* string)