Skip to content

Commit

Permalink
Fix: str8 cast as i8 instead of u8
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbol authored and jinzhongjia committed Oct 3, 2024
1 parent 5778aa7 commit 474436b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/msgpack.zig
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ pub fn Pack(

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

try self.writeData(str);
}
Expand Down

0 comments on commit 474436b

Please sign in to comment.