Skip to content

Commit

Permalink
ogt_vox: fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Jul 31, 2023
1 parent c8387c2 commit ff2d1c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion demo/demo_vox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ bool demo_load_and_save(const char *filename)
for (uint32_t instance_index = 0; instance_index < scene->num_instances; instance_index++)
{
const ogt_vox_instance* instance = &scene->instances[instance_index];
const ogt_vox_model* model = scene->models[instance->model_index];
// const ogt_vox_model* model = scene->models[instance->model_index];

const char* layer_name =
instance->layer_index == UINT32_MAX ? "(no layer)":
Expand Down
2 changes: 1 addition & 1 deletion src/ogt_vox.h
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@
if (!str)
return default_value;
uint32_t value;
_vox_str_scanf(str, "%i", &value);
_vox_str_scanf(str, "%u", &value);
return value;
}

Expand Down
2 changes: 1 addition & 1 deletion src/ogt_voxel_meshify.h
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ int32_t _construct_polygon_for_slice(ogt_mesh_vec2i* verts, uint32_t max_verts,

// (1) try tessellate edge0, edge1, edge2.
const uint32_t k_max_tessellations = 512;
assert(edge1_pushed_distance < k_max_tessellations);
assert(edge1_pushed_distance < (int)k_max_tessellations);
ogt_mesh_vec2i tess_buffer[k_max_tessellations];
uint32_t tess_offset = 0;

Expand Down

0 comments on commit ff2d1c3

Please sign in to comment.