fix warning

This commit is contained in:
ruby0x1
2020-12-03 10:47:49 -08:00
parent 97ebcc72c3
commit bc7dd50a54

View File

@ -201,7 +201,7 @@ uint32_t wrenValidateIndex(uint32_t count, int64_t value)
if (value < 0) value = count + value;
// Check bounds.
if (value >= 0 && value < count) return value;
if (value >= 0 && value < count) return (uint32_t)value;
return UINT32_MAX;
}