mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-12-18 06:18:37 +08:00
Merge pull request #404 from farrrb/fix-nibbles-UnityPrintNumberHex
Fixed maximum number of nibbles for processor where sizeof() operator…
This commit is contained in:
@@ -352,9 +352,9 @@ void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print)
|
||||
int nibble;
|
||||
char nibbles = nibbles_to_print;
|
||||
|
||||
if ((unsigned)nibbles > (2 * sizeof(number)))
|
||||
if ((unsigned)nibbles > UNITY_MAX_NIBBLES)
|
||||
{
|
||||
nibbles = 2 * sizeof(number);
|
||||
nibbles = UNITY_MAX_NIBBLES;
|
||||
}
|
||||
|
||||
while (nibbles > 0)
|
||||
|
||||
Reference in New Issue
Block a user