diff options
author | Clément Bœsch <cboesch@gopro.com> | 2017-03-15 12:32:15 +0100 |
---|---|---|
committer | Clément Bœsch <cboesch@gopro.com> | 2017-03-15 12:32:15 +0100 |
commit | 8b13492c9ecf85f1f674f99df370a19992b3910a (patch) | |
tree | eb812effeef44ed6d0f378c21b23d099a0a5f25b /tests/checkasm | |
parent | 89a032634b6edde1efa402d7deaa66fa25dd3e2b (diff) | |
parent | 40ad05bab206c932a32171d45581080c914b06ec (diff) | |
download | ffmpeg-8b13492c9ecf85f1f674f99df370a19992b3910a.tar.gz |
Merge commit '40ad05bab206c932a32171d45581080c914b06ec'
* commit '40ad05bab206c932a32171d45581080c914b06ec':
checkasm: Cast unsigned to signed
Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'tests/checkasm')
-rw-r--r-- | tests/checkasm/checkasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/checkasm/checkasm.c b/tests/checkasm/checkasm.c index f6719809e3..ecfa5d2109 100644 --- a/tests/checkasm/checkasm.c +++ b/tests/checkasm/checkasm.c @@ -217,7 +217,7 @@ int float_near_ulp(float a, float b, unsigned max_ulp) return a == b; } - if (abs(x.i - y.i) <= max_ulp) + if (llabs((int64_t)x.i - y.i) <= max_ulp) return 1; return 0; |