mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-22 15:28:12 +08:00
use unary minus on the incoming int instead of the casted uint
This commit is contained in:
@ -321,7 +321,7 @@ void UnityPrintNumber(const UNITY_INT number_to_print)
|
||||
{
|
||||
/* A negative number, including MIN negative */
|
||||
UNITY_OUTPUT_CHAR('-');
|
||||
number = -number;
|
||||
number = (UNITY_UINT)-number_to_print;
|
||||
}
|
||||
UnityPrintNumberUnsigned(number);
|
||||
}
|
||||
|
Reference in New Issue
Block a user