aboutsummaryrefslogtreecommitdiff
path: root/src/string_mutable.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2023-05-04 22:44:02 -0700
committerGravatar GitHub <noreply@github.com> 2023-05-04 22:44:02 -0700
commitd9386a68a4316052f355235a7ff4f4b5eb0a2722 (patch)
tree183845717e420645e2ab3b5705dc87b393b726b9 /src/string_mutable.zig
parent945d069290fcf0ce852120b809ed8aa6cdd1e245 (diff)
downloadbun-d9386a68a4316052f355235a7ff4f4b5eb0a2722.tar.gz
bun-d9386a68a4316052f355235a7ff4f4b5eb0a2722.tar.zst
bun-d9386a68a4316052f355235a7ff4f4b5eb0a2722.zip
fix source map line offsets (#2791)
* find codepoint at `i` * fix allocator usage * missing comment * switch to `Cursor` iterator
Diffstat (limited to 'src/string_mutable.zig')
-rw-r--r--src/string_mutable.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_mutable.zig b/src/string_mutable.zig
index 9fdc3d090..2b8d80429 100644
--- a/src/string_mutable.zig
+++ b/src/string_mutable.zig
@@ -250,7 +250,7 @@ pub const MutableString = struct {
return self.indexOfChar(char) != null;
}
- pub fn indexOfChar(self: *const MutableString, char: u8) ?usize {
+ pub fn indexOfChar(self: *const MutableString, char: u8) ?u32 {
return strings.indexOfChar(self.list.items, char);
}