Zig implementation: fix a test.
This commit is contained in:
parent
7ef4c43d60
commit
7d96ec3c28
@ -207,8 +207,8 @@ fn successful_in (_: i32, mcontent: [*]u8, mlen: *u32) CBEventType {
|
|||||||
|
|
||||||
var fbs = std.io.fixedBufferStream(mcontent[0..mlen.*]);
|
var fbs = std.io.fixedBufferStream(mcontent[0..mlen.*]);
|
||||||
var writer = fbs.writer();
|
var writer = fbs.writer();
|
||||||
_ = m.write (writer) catch unreachable;
|
const bytes_written = m.write (writer) catch unreachable;
|
||||||
mlen.* = @truncate(u32, m.payload.len);
|
mlen.* = @truncate(u32, bytes_written);
|
||||||
return CBEventType.NO_ERROR;
|
return CBEventType.NO_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user