Avoid forward static decl of undefined functions, also fix a paren warning in the tests.

This commit is contained in:
Gregory Maxwell
2014-11-12 15:41:47 -08:00
parent 3276e7d4e2
commit f0709ac57e
4 changed files with 29 additions and 17 deletions

View File

@@ -10,7 +10,7 @@
#include <stdlib.h>
#include "secp256k1.c"
#include "util_impl.h"
#include "testrand_impl.h"
#ifdef ENABLE_OPENSSL_TESTS
#include "openssl/bn.h"
@@ -134,7 +134,7 @@ void test_num_get_set_hex(void) {
// check whether the lower 4 bits correspond to the last hex character
int low1 = secp256k1_num_shift(&n1, 4);
int lowh = c[63];
int low2 = (lowh>>6)*9+(lowh-'0')&15;
int low2 = ((lowh>>6)*9+(lowh-'0'))&15;
CHECK(low1 == low2);
// shift bits off the hex representation, and compare
memmove(c+1, c, 63);