Fix gigimport in RSA#11
Conversation
| g->sign -= 1; | ||
| } | ||
|
|
||
| assert(g->sign != 0); |
There was a problem hiding this comment.
This assert gets triggered for nxdk XBEs now, because buff is len bytes of zero.
I'm not sure why this check exists in the first place?
There was a problem hiding this comment.
This seems to be a hack that was introduced here: dd70311#diff-e64a6c66ddd61d0fa1f0670ca3423da2L227
I don't think the additional check / fixup for g->sign == 0 isn't even necessary, because
Lines 359 to 377 in d0d6508
g->sign == 0 appears to be a valid state.
It also handles 0 like that in this:
Lines 393 to 407 in d0d6508
There was a problem hiding this comment.
I've removed this assert.
|
I tested this PR on the following:
All worked just fine after this change. |
|
Tested using the |
Backport of changes that were done in https://github.com/Cxbx-Reloaded/Cxbx-Reloaded/pull/1561
Additionally, an assert was removed because it warns about (what appears to be) a valid state. See this discussion on this PR: #11 (comment)
Hopefully closes #9 and hopefully closes #10