Closed jerrymarino closed 4 years ago
Fix classic integer handling programming error: If encoder.getMsgId() is < 3 it will EXC_BAD_INSTRUCTION (SIGILL).
I introduced a helper function to detect and prevent this error, which makes sure that it won't overflow if used.
Additionally remove all force unwraps and misc dead code in the main code
Fix classic integer handling programming error: If encoder.getMsgId() is < 3 it will EXC_BAD_INSTRUCTION (SIGILL).
I introduced a helper function to detect and prevent this error, which makes sure that it won't overflow if used.
Additionally remove all force unwraps and misc dead code in the main code