mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 16:35:58 +01:00
Make subtraction result unsigned, change prototype & casts in internals. If "actual - expected" overflowed, it wrapped to a negative number, but would fit in an unsigned type, example is INT_MAX - (-1) = INT_MIN For correctness, 'delta' should be unsigned too. Passing in a negative number always passed. The delta can be between INT_MAX & UINT_MAX.