Nicolas Iooss 41ed13942b tests: really test the non-var scalar inverse
Function `test_inverse_scalar` contains:

    (var ? secp256k1_scalar_inverse_var : secp256k1_scalar_inverse_var)(&l, x);  /* l = 1/x */

The two sides of the condition are the same function. This seems to be
an error, as there also exists a non-var function, named
`secp256k1_scalar_inverse`.

Make `test_inverse_scalar` use this other function when `var` is false.

This issue was found using clang's static analyzer, which reported a
"Logic error: Identical expressions in conditional expression" (with
checker `alpha.core.IdenticalExpr`).
2021-06-28 15:21:00 +02:00
..
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2021-05-31 20:46:04 +00:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2021-03-15 13:01:52 -07:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2021-03-15 13:01:52 -07:00
2021-03-15 13:01:52 -07:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2021-03-12 10:06:18 -08:00
2020-12-18 00:24:22 +02:00
2021-03-12 10:06:18 -08:00
2020-12-18 00:24:22 +02:00
2021-03-15 13:01:52 -07:00
2021-03-12 10:06:18 -08:00
2020-12-18 00:24:22 +02:00
2021-03-15 13:01:52 -07:00
2021-01-23 14:48:35 -05:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2021-03-08 09:56:07 -08:00