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

parser: deprecate size_t (#11443)

This commit is contained in:
Enzo
2021-09-08 12:09:32 +02:00
committed by GitHub
parent 892971024e
commit e3b65092d6
31 changed files with 160 additions and 152 deletions

View File

@@ -133,7 +133,7 @@ pub fn (mut tf_skl TTF_render_Sokol) create_texture() {
// comment for dynamic
img_desc.data.subimage[0][0] = C.sg_range{
ptr: tf_skl.bmp.buf
size: size_t(sz)
size: usize(sz)
}
simg := C.sg_make_image(&img_desc)
@@ -151,7 +151,7 @@ pub fn (mut tf_skl TTF_render_Sokol) update_text_texture() {
mut tmp_sbc := C.sg_image_data{}
tmp_sbc.subimage[0][0] = C.sg_range{
ptr: tf_skl.bmp.buf
size: size_t(sz)
size: usize(sz)
}
C.sg_update_image(tf_skl.sg_img, &tmp_sbc)
}