Skip to content

Commit

Permalink
fix an error
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Oct 25, 2023
1 parent 586b71f commit 92591e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sherpa-onnx/csrc/text-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ std::vector<std::string> SplitUtf8(const std::string &text) {
start += num_bytes;
} else {
SHERPA_ONNX_LOGE("Invalid byte at position: %d",
static_cast<int32_t>(begin - start));
static_cast<int32_t>(start - begin));
// skip this byte
++start;
}
}

Expand Down

0 comments on commit 92591e6

Please sign in to comment.