mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Fix warning in clang 3.5 (-Wabsolute-value)
This commit is contained in:
@ -390,7 +390,7 @@ static uint32_t calculateRange(WrenVM* vm, Value* args, ObjRange* range,
|
||||
}
|
||||
|
||||
uint32_t to = (uint32_t)value;
|
||||
*length = abs(from - to) + 1;
|
||||
*length = abs((int)(from - to)) + 1;
|
||||
*step = from < to ? 1 : -1;
|
||||
return from;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user