Skip to content

Commit

Permalink
Update Corridor.h
Browse files Browse the repository at this point in the history
Windows warning fix.
  • Loading branch information
razterizer authored Oct 3, 2024
1 parent 8243c60 commit 1d91496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Corridor.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace dung
{
auto local_pos = world_pos - bb.pos();
auto idx = local_pos.r * bb.c_len + local_pos.c;
if (math::in_range<int>(idx, 0, light.size(), Range::ClosedOpen))
if (math::in_range<int>(idx, 0, static_cast<int>(light.size()), Range::ClosedOpen))
return light[idx];
return false;
}
Expand Down

0 comments on commit 1d91496

Please sign in to comment.