Skip to content

Commit

Permalink
Backport fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Feb 9, 2023
1 parent eef9559 commit 371ddc4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/obj_long.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,9 @@ static int krk_long_add(KrkLong * res, const KrkLong * a, const KrkLong * b) {
FINISH_OUTPUT(res);
return 0;
}
return 1;
krk_long_clear(res);
FINISH_OUTPUT(res);
return 0;
} else if (a->width > 0 && b->width < 0) {
switch (krk_long_compare_abs(a,b)) {
case -1:
Expand All @@ -412,8 +414,9 @@ static int krk_long_add(KrkLong * res, const KrkLong * a, const KrkLong * b) {
FINISH_OUTPUT(res);
return 0;
}
krk_long_clear(res);
FINISH_OUTPUT(res);
return 1;
return 0;
}

/* sign must match for this, so take it from whichever */
Expand Down

0 comments on commit 371ddc4

Please sign in to comment.