Fixed hex and oct emitting (it now adds the 0x or 0 prefix)

This commit is contained in:
Jesse Beder
2012-01-13 00:00:11 -06:00
parent a441e1a14c
commit d772361f15
2 changed files with 14 additions and 1 deletions

View File

@@ -670,9 +670,11 @@ namespace YAML
str << std::dec;
break;
case Hex:
str << "0x";
str << std::hex;
break;
case Oct:
case Oct:
str << "0";
str << std::oct;
break;
default: