mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: fix some of v test-cleancode
2
This commit is contained in:
parent
fec89c7efb
commit
c0e2b9b1e2
5 changed files with 8 additions and 8 deletions
|
@ -119,7 +119,7 @@ fn create_image(file string) Image {
|
|||
return img
|
||||
}
|
||||
|
||||
pub fn (mut ctx Context) create_image_from_memory(buf byteptr, bufsize int) Image {
|
||||
pub fn (mut ctx Context) create_image_from_memory(buf &byte, bufsize int) Image {
|
||||
stb_img := stbi.load_from_memory(buf, bufsize) or { return Image{} }
|
||||
mut img := Image{
|
||||
width: stb_img.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue