From e3c86b659c6339700e5dc64482ba68acebcdf0eb Mon Sep 17 00:00:00 2001 From: Alexander Mueller <alexander.mueller@littleblue.de> Date: Mon, 3 Aug 2015 10:48:17 +0200 Subject: [PATCH] Fixes compiler warning about comparison of signed/unsigned --- src/unity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unity.c b/src/unity.c index a318883..244de46 100644 --- a/src/unity.c +++ b/src/unity.c @@ -118,7 +118,7 @@ void UnityPrintLen(const char* string, const _UU32 length) if (pch != NULL) { - while (*pch && (pch - string) < length) + while (*pch && (_UU32)(pch - string) < length) { // printable characters plus CR & LF are printed if ((*pch <= 126) && (*pch >= 32))