We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289bf41 commit 21dc4ddCopy full SHA for 21dc4dd
src/llama-chat.cpp
@@ -16,10 +16,10 @@
16
static std::string trim(const std::string & str) {
17
size_t start = 0;
18
size_t end = str.size();
19
- while (start < end && isspace(str[start])) {
+ while (start < end && isspace(static_cast<unsigned char>(str[start]))) {
20
start += 1;
21
}
22
- while (end > start && isspace(str[end - 1])) {
+ while (end > start && isspace(static_cast<unsigned char>(str[end - 1]))) {
23
end -= 1;
24
25
return str.substr(start, end - start);
0 commit comments