mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-12-17 22:08:07 +08:00
- Cleaned up UnitPointer_Set (thanks Eric)
- Cleaned up a casting warning error - Removed a couple semicolons from the end of macros SHAME!
This commit is contained in:
@@ -188,7 +188,7 @@ void UnityPrintNumber(const _U_SINT number_to_print)
|
||||
}
|
||||
|
||||
// figure out initial divisor
|
||||
while (number / divisor > 9)
|
||||
while ((_U_SINT)number / divisor > 9)
|
||||
{
|
||||
next_divisor = divisor * 10;
|
||||
if (next_divisor > divisor)
|
||||
@@ -200,7 +200,7 @@ void UnityPrintNumber(const _U_SINT number_to_print)
|
||||
// now mod and print, then divide divisor
|
||||
do
|
||||
{
|
||||
UNITY_OUTPUT_CHAR((char)('0' + (number / divisor % 10)));
|
||||
UNITY_OUTPUT_CHAR((char)('0' + ((_U_SINT)number / divisor % 10)));
|
||||
divisor /= 10;
|
||||
}
|
||||
while (divisor > 0);
|
||||
|
||||
Reference in New Issue
Block a user