Skip to content

Commit

Permalink
Fix minor compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Kulla <ckulla@gmail.com>
  • Loading branch information
fpsunflower committed Sep 15, 2024
1 parent ebe0e52 commit 93a2727
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/testrender/scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Scene::add_model(const std::string& filename, const ShaderMap& shadermap,
// remap the material ID to our indexing
int obj_mat_id = shape.mesh.material_ids[f];
OSL_ASSERT(obj_mat_id >= 0);
OSL_ASSERT(obj_mat_id < material_ids.size());
OSL_ASSERT(obj_mat_id < int(material_ids.size()));
shaderids.emplace_back(material_ids[obj_mat_id]);
} else
shaderids.emplace_back(shapeShaderID);
Expand Down
2 changes: 1 addition & 1 deletion src/testrender/simpleraytracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ SimpleRaytracer::subpixel_radiance(float x, float y, Sampler& sampler,
int ls = floorf(xl);
xl -= ls;

int lid = m_lightprims[ls];
uint32_t lid = m_lightprims[ls];
if (lid != hit.id) {
int shaderID = scene.shaderid(lid);
// sample a random direction towards the object
Expand Down

0 comments on commit 93a2727

Please sign in to comment.