forked from vieter-v/vieter
fix: replace byte with u8
BREAKING: the V compiler removed the byte type alias in favor of u8.
This commit is contained in:
parent
20707f6af1
commit
7722d5a7e4
4 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue