Skip to content

Commit

Permalink
Fix relic build on macOS (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-keyspace authored Oct 10, 2022
1 parent d9ef33c commit d2dd70f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/bls-signatures/src/bls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Util::SecureFreeCallback Util::secureFreeCallback;
static void relic_core_initializer(void* ptr)
{
core_init();
if (err_get_code() != RLC_OK) {
if (err_get_code_2() != RLC_OK) {
throw std::runtime_error("core_init() failed");
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/relic/include/relic_err.h
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,6 @@ void err_get_msg(err_t *e, char **msg);
*
* @returns ERR_OK if no errors occurred in the function, ERR_ERR otherwise.
*/
int err_get_code(void);
int err_get_code_2(void);

#endif /* !RLC_ERR_H */
2 changes: 1 addition & 1 deletion Sources/relic/src/relic_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void err_get_msg(err_t *e, char **msg) {

#endif /* CHECK */

int err_get_code(void) {
int err_get_code_2(void) {
ctx_t *ctx = core_get();
int r = ctx->code;
ctx->code = RLC_OK;
Expand Down

0 comments on commit d2dd70f

Please sign in to comment.