1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: use u8 everywhere

This commit is contained in:
Alexander Medvednikov
2022-04-15 18:34:15 +03:00
parent fbb9e65c0f
commit 1c6f63ac0a
29 changed files with 60 additions and 58 deletions

View File

@@ -17,7 +17,7 @@ fn frame(mut ctx gg.Context) {
ctx.begin()
id := ctx.new_streaming_image(ctx.width, ctx.height, 4, pixel_format: .rgba8)
mut img := ctx.get_cached_image_by_idx(id)
mut bytes := []byte{len: img.width * img.height * 4, cap: img.width * img.height * 4}
mut bytes := []u8{len: img.width * img.height * 4, cap: img.width * img.height * 4}
for y in 0 .. img.height {
for x in 0 .. img.width {
unsafe {