Uh oh!
There was an error while loading. Please reload this page.
Gmp warning to error - #5882
Conversation
4c07065 to
a0d7f93Comparea0d7f93 to
c3789cfCompareGirgias
commented
Jul 31, 2020
@kocsismate can you have a look at some of the error messages in here? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
c3789cf to
e1c3356CompareGirgias
commented
Aug 3, 2020
Are there other issues/objections to this? Or can I merge this before FF gets tagged on Tuesday? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
e1c3356 to
85a4dbeCompareThere was a problem hiding this comment.
Is it actually necessary to return failure on exception here? I think if we throw, this should still be success, otherwise we're going to try calling do_operation on the second operand again.
There was a problem hiding this comment.
I forgot to drop this again but the DO_BINARY_UI_OP_EX macro does exactly that:
#defineDO_BINARY_UI_OP_EX(op, uop, check_b_zero) \
gmp_zval_binary_ui_op( \
result, op1, op2, op, uop, check_b_zero \
); \
if (UNEXPECTED(EG(exception))) { return FAILURE; } \
return SUCCESS;Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Shouldn't this function just accept int instead? Makes little sense to convert to GMP first and then convert back to integer.
There was a problem hiding this comment.
Well the function should be able to accept a GMP object, but it's true that this code makes little sense atm.
85a4dbe to
b0c77ffCompare
This gets rids of most false returns.