yaml-cpp icon indicating copy to clipboard operation
yaml-cpp copied to clipboard

Broken round trip for `unsigned char`

Open Yankes opened this issue 4 years ago • 0 comments

This line: https://github.com/jbeder/yaml-cpp/blob/6308112e54fe41a3bc1ceeb2b807f0d09f15a1e9/include/yaml-cpp/node/convert.h#L123 load unsigned char as int But when you save you get: https://github.com/jbeder/yaml-cpp/blob/6308112e54fe41a3bc1ceeb2b807f0d09f15a1e9/include/yaml-cpp/node/convert.h#L118 Its is saved as effective char.

Or in emitter: https://github.com/jbeder/yaml-cpp/blob/master/include/yaml-cpp/emitter.h#L211

Yankes avatar Sep 03 '21 18:09 Yankes