summaryrefslogtreecommitdiff
path: root/src/string_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-12-15 13:29:45 +1100
committerMaxime Coste <mawww@kakoune.org>2022-12-15 13:29:45 +1100
commit20278ed52b175de20b57090f3087a23060a39e24 (patch)
tree11e6b67f3794d6c2845cc7b9044c9594ac4e68f9 /src/string_utils.cc
parent8279a3776f38c875ef58da7823f56fb5ef3407bb (diff)
Support adding ByteCount to void/char pointers without casting
Diffstat (limited to 'src/string_utils.cc')
-rw-r--r--src/string_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_utils.cc b/src/string_utils.cc
index f34bde03..0b0de19e 100644
--- a/src/string_utils.cc
+++ b/src/string_utils.cc
@@ -107,7 +107,7 @@ String replace(StringView str, StringView substr, StringView replacement)
break;
res += replacement;
- it = match + (int)substr.length();
+ it = match + substr.length();
}
return res;
}