From 00dbc2f6db869d331bcb6b42fe057dc5ad248e28 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Mon, 30 Sep 2024 14:14:26 +0200 Subject: [PATCH] sokol_gfx.h wgpu: fix sign conversion warning --- sokol_gfx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sokol_gfx.h b/sokol_gfx.h index e51aff797..56f876922 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -14255,7 +14255,7 @@ _SOKOL_PRIVATE void _sg_wgpu_bindings_cache_clear(void) { memset(&_sg.wgpu.bindings_cache, 0, sizeof(_sg.wgpu.bindings_cache)); } -_SOKOL_PRIVATE bool _sg_wgpu_bindings_cache_vb_dirty(int index, const _sg_buffer_t* vb, uint64_t offset) { +_SOKOL_PRIVATE bool _sg_wgpu_bindings_cache_vb_dirty(size_t index, const _sg_buffer_t* vb, uint64_t offset) { SOKOL_ASSERT((index >= 0) && (index < SG_MAX_VERTEXBUFFER_BINDSLOTS)); if (vb) { return (_sg.wgpu.bindings_cache.vbs[index].buffer.id != vb->slot.id) @@ -14265,7 +14265,7 @@ _SOKOL_PRIVATE bool _sg_wgpu_bindings_cache_vb_dirty(int index, const _sg_buffer } } -_SOKOL_PRIVATE void _sg_wgpu_bindings_cache_vb_update(int index, const _sg_buffer_t* vb, uint64_t offset) { +_SOKOL_PRIVATE void _sg_wgpu_bindings_cache_vb_update(size_t index, const _sg_buffer_t* vb, uint64_t offset) { SOKOL_ASSERT((index >= 0) && (index < SG_MAX_VERTEXBUFFER_BINDSLOTS)); if (vb) { _sg.wgpu.bindings_cache.vbs[index].buffer.id = vb->slot.id;