Skip to content

Commit 9e05a44

Browse files
committed
Improved example [skip ci]
1 parent 0ce634d commit 9e05a44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/disco/example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ std::string convert_to_utf8(const std::string& str) {
2020
if (v < 128) {
2121
buf << v;
2222
} else {
23-
buf << static_cast<char>(195) << static_cast<char>(v - 64);
23+
buf << static_cast<unsigned char>(195) << static_cast<unsigned char>(v - 64);
2424
}
2525
}
2626
return buf.str();

0 commit comments

Comments
 (0)