fix signedness of comparison var

develop
Myk Taylor 2022-12-28 23:31:06 -08:00
parent cff603e243
commit 371f5be050
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

@ -2166,7 +2166,7 @@ int getDepthAt_default (int32_t x, int32_t y)
return 0; return 0;
const size_t num_viewports = gps->viewport.size(); const size_t num_viewports = gps->viewport.size();
const size_t index = (x * main_vp->dim_y) + y; const size_t index = (x * main_vp->dim_y) + y;
for (int depth = 0; depth < num_viewports; ++depth) { for (size_t depth = 0; depth < num_viewports; ++depth) {
if (gps->viewport[depth]->screentexpos_background[index]) if (gps->viewport[depth]->screentexpos_background[index])
return depth; return depth;
} }