Skip to content

Commit

Permalink
secp256k1_context_create: Use unsigned type for flags bitfield
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Sep 19, 2015
1 parent 85e3a2c commit 64b730b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/secp256k1.h
Expand Up @@ -141,7 +141,7 @@ typedef int (*secp256k1_nonce_function_t)(
* In: flags: which parts of the context to initialize.
*/
secp256k1_context_t* secp256k1_context_create(
int flags
unsigned int flags
) SECP256K1_WARN_UNUSED_RESULT;

/** Copies a secp256k1 context object.
Expand Down
2 changes: 1 addition & 1 deletion src/secp256k1.c
Expand Up @@ -57,7 +57,7 @@ struct secp256k1_context_struct {
callback_t error_callback;
};

secp256k1_context_t* secp256k1_context_create(int flags) {
secp256k1_context_t* secp256k1_context_create(unsigned int flags) {
secp256k1_context_t* ret = (secp256k1_context_t*)checked_malloc(&default_error_callback, sizeof(secp256k1_context_t));
ret->illegal_callback = default_illegal_callback;
ret->error_callback = default_error_callback;
Expand Down

0 comments on commit 64b730b

Please sign in to comment.