Skip to content

Commit 0ce634d

Browse files
committed
Fixed example [skip ci]
1 parent e25311b commit 0ce634d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/disco/example.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ using disco::Recommender;
1616

1717
std::string convert_to_utf8(const std::string& str) {
1818
std::stringstream buf;
19-
for (const auto& v : str) {
20-
if (v >= 0) {
19+
for (const unsigned char v : str) {
20+
if (v < 128) {
2121
buf << v;
2222
} else {
2323
buf << static_cast<char>(195) << static_cast<char>(v - 64);

0 commit comments

Comments
 (0)