• J
    Fix for overflow issue in UnityAssertNumbersWithin() · 41083190
    jsalling 提交于
     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.
    41083190
unity.c 40.0 KB