Browse Source

Tweak bcl_divmod

This technically doesn't change the API, so I can put it into a bug fix
release if necessary.
master
Gavin Howard 3 months ago
parent
commit
e9f98ad240
Signed by: gavin GPG Key ID: C08038BDF280D33E
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/library.c

+ 3
- 1
src/library.c View File

@ -709,7 +709,9 @@ err:
if (BC_ERR(vm.err)) {
if (cnum.num != NULL) bc_num_free(&cnum);
if (dnum.num != NULL) bc_num_free(&dnum);
BC_FUNC_FOOTER(e);
c->i = 0 - (size_t) BCL_ERROR_INVALID_NUM;
d->i = c->i;
BC_FUNC_FOOTER(e);
}
else {
BC_FUNC_FOOTER(e);


Loading…
Cancel
Save