aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library.c b/src/library.c
index ee30e13e..dbc8355a 100644
--- a/src/library.c
+++ b/src/library.c
@@ -1044,11 +1044,11 @@ static void bcl_frandHelper(BcNum *restrict b, size_t places) {
BC_SIG_LOCK;
- BC_SETJMP_LOCKED(err);
-
// Initialize the temporary that might need to grow.
bc_num_init(&pow, bc_num_powReq(&ten, &exp, 0));
+ BC_SETJMP_LOCKED(err);
+
BC_SIG_UNLOCK;
// Generate the number.