mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
More deprecations in lib6, and updates to lib7
This commit is contained in:
@@ -4,7 +4,7 @@ import std::io;
|
||||
fn void write_read()
|
||||
{
|
||||
ByteBuffer buf;
|
||||
buf.temp_init(16);
|
||||
buf.tinit(16);
|
||||
usz n;
|
||||
uint x;
|
||||
uint y;
|
||||
@@ -45,7 +45,7 @@ fn void samples()
|
||||
foreach (tc : tcases)
|
||||
{
|
||||
ByteWriter bw;
|
||||
bw.temp_init();
|
||||
bw.tinit();
|
||||
usz n = io::write_varint(&bw, tc.in)!!;
|
||||
assert(n == tc.bytes.len, "got %d; want %d", n, tc.bytes.len);
|
||||
char[] bytes = bw.bytes[:bw.index];
|
||||
|
||||
Reference in New Issue
Block a user