araw: avoid underflow in conversion
commita8fdf9068bdbfdcd1ebf5e49cfe0f495b009dbea
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 7 Jan 2018 13:23:07 +0000 (7 15:23 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 7 Jan 2018 13:30:58 +0000 (7 15:30 +0200)
treefc1f3f56ca630dcde008d72967b8ad2002792117
parent44bed4b30276059a16647a08c7746b6e067612b6
araw: avoid underflow in conversion

Cast to positive numbers to int explicitly before computing the
difference, so the result will be signed correctly.
modules/codec/araw.c