Skip to content

Commit e4bad30

Browse files
committed
ogt_vox: fixed compiler warnings
1 parent 17cb4a7 commit e4bad30

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

demo/demo_vox.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bool demo_load_and_save(const char *filename)
133133
for (uint32_t instance_index = 0; instance_index < scene->num_instances; instance_index++)
134134
{
135135
const ogt_vox_instance* instance = &scene->instances[instance_index];
136-
const ogt_vox_model* model = scene->models[instance->model_index];
136+
// const ogt_vox_model* model = scene->models[instance->model_index];
137137

138138
const char* layer_name =
139139
instance->layer_index == UINT32_MAX ? "(no layer)":

src/ogt_vox.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@
10121012
if (!str)
10131013
return default_value;
10141014
uint32_t value;
1015-
_vox_str_scanf(str, "%i", &value);
1015+
_vox_str_scanf(str, "%u", &value);
10161016
return value;
10171017
}
10181018

src/ogt_voxel_meshify.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ int32_t _construct_polygon_for_slice(ogt_mesh_vec2i* verts, uint32_t max_verts,
14221422

14231423
// (1) try tessellate edge0, edge1, edge2.
14241424
const uint32_t k_max_tessellations = 512;
1425-
assert(edge1_pushed_distance < k_max_tessellations);
1425+
assert(edge1_pushed_distance < (int)k_max_tessellations);
14261426
ogt_mesh_vec2i tess_buffer[k_max_tessellations];
14271427
uint32_t tess_offset = 0;
14281428

0 commit comments

Comments
 (0)