mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-10 21:58:48 +01:00
fix warning
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user