Skip to content

Commit 474436b

Browse files
maxboljinzhongjia
authored andcommitted
Fix: str8 cast as i8 instead of u8
1 parent 5778aa7 commit 474436b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/msgpack.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ pub fn Pack(
594594

595595
fn writeStr8Value(self: Self, str: []const u8) !void {
596596
const len = str.len;
597-
try self.writeI8Value(@intCast(len));
597+
try self.writeU8Value(@intCast(len));
598598

599599
try self.writeData(str);
600600
}

0 commit comments

Comments
 (0)