Switched YAML::Binary interface to use unsigned chars, not chars

This commit is contained in:
Jesse Beder
2011-09-06 00:39:31 -05:00
parent fadca5a89d
commit dd1eb715c4
4 changed files with 8 additions and 8 deletions

View File

@@ -347,7 +347,7 @@ namespace YAML
return true;
}
bool WriteBinary(ostream& out, const char *data, std::size_t size)
bool WriteBinary(ostream& out, const unsigned char *data, std::size_t size)
{
static const char encoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const char PAD = '=';