Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/tvm/ffi/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ class String {
* \param count The length of the substring (default: until end of string)
* \return A string containing the substring
*/
String substr(size_t pos = 0, size_t count = size_t(-1)) const {
String substr(size_t pos = 0, size_t count = npos) const {
if (pos > size()) {
throw std::out_of_range("tvm::String substr index out of bounds");
}
Expand Down