Browse Source
Passing an unsigned value to abs() causes compilation error in gcc 6.1.1 (and doing that doesn't make sense too). As a bonus, this patch fixes the code, since, for two unsigned integers a and b, such that a > b, (a - b) without the casting to a signed integer would produce garbage in the context of this patch. The type int32_t is enough for the cases covered by this patch.master
3 changed files with 8 additions and 3 deletions
Loading…
Reference in new issue