From 5edda03c780eca28f3af3218eade98af14cf3c00 Mon Sep 17 00:00:00 2001 From: Roland Stahn Date: Wed, 28 May 2025 09:55:17 +0200 Subject: [PATCH 1/2] Cleanup definition of UNITY_COMPARISON_T in unity_internals.h remove unused values UNITY_WITHIN and UNITY_UNKNOWN update value UNITY_NOT_EQUAL --- src/unity_internals.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/unity_internals.h b/src/unity_internals.h index 97fc9b49..d12e3a7a 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -487,14 +487,12 @@ typedef enum typedef enum { - UNITY_WITHIN = 0x0, UNITY_EQUAL_TO = 0x1, UNITY_GREATER_THAN = 0x2, UNITY_GREATER_OR_EQUAL = 0x2 + UNITY_EQUAL_TO, UNITY_SMALLER_THAN = 0x4, UNITY_SMALLER_OR_EQUAL = 0x4 + UNITY_EQUAL_TO, - UNITY_NOT_EQUAL = 0x0, - UNITY_UNKNOWN + UNITY_NOT_EQUAL = 0x6 } UNITY_COMPARISON_T; #ifndef UNITY_EXCLUDE_FLOAT From 50c37200b9f5c422c332615b171e033d88d2b1e8 Mon Sep 17 00:00:00 2001 From: Roland Stahn Date: Wed, 28 May 2025 10:07:04 +0200 Subject: [PATCH 2/2] Fix definition of UNITY_NOT_EQUAL in unity_internals.h --- src/unity_internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unity_internals.h b/src/unity_internals.h index d12e3a7a..f83fdc6e 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -492,7 +492,7 @@ typedef enum UNITY_GREATER_OR_EQUAL = 0x2 + UNITY_EQUAL_TO, UNITY_SMALLER_THAN = 0x4, UNITY_SMALLER_OR_EQUAL = 0x4 + UNITY_EQUAL_TO, - UNITY_NOT_EQUAL = 0x6 + UNITY_NOT_EQUAL = 0x8 } UNITY_COMPARISON_T; #ifndef UNITY_EXCLUDE_FLOAT