From 474436bb1949a030102ae060681a3b40aca5bab3 Mon Sep 17 00:00:00 2001 From: Max Bolotin Date: Wed, 2 Oct 2024 22:14:25 +0200 Subject: [PATCH] Fix: str8 cast as i8 instead of u8 --- src/msgpack.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msgpack.zig b/src/msgpack.zig index ca63d49..cb5e415 100644 --- a/src/msgpack.zig +++ b/src/msgpack.zig @@ -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); }