fix: replace byte with u8

BREAKING: the V compiler removed the byte type alias in favor of u8.
This commit is contained in:
Jef Roosens 2022-04-30 11:43:06 +02:00
parent 20707f6af1
commit 7722d5a7e4
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 7 additions and 7 deletions

View file

@ -285,7 +285,7 @@ pub fn (mut ctx Context) file(f_path string) Result {
resp.set_status(ctx.status)
send_string(mut ctx.conn, resp.bytestr()) or { return Result{} }
mut buf := []byte{len: 1_000_000}
mut buf := []u8{len: 1_000_000}
mut bytes_left := file_size
// Repeat as long as the stream still has data