mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-10-18 14:47:57 +00:00
Avoid possible Undefined Behavior
(related to a possible negative zero, as reported by RV-Match)
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#define CMOCK_ARG_MODE CMOCK_MEM_INDEX_TYPE
|
#define CMOCK_ARG_MODE CMOCK_MEM_INDEX_TYPE
|
||||||
#define CMOCK_ARG_ALL 0
|
#define CMOCK_ARG_ALL 0
|
||||||
#define CMOCK_ARG_NONE ((CMOCK_MEM_INDEX_TYPE)(~0))
|
#define CMOCK_ARG_NONE ((CMOCK_MEM_INDEX_TYPE)(~0U))
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Memory API
|
// Memory API
|
||||||
|
|||||||
Reference in New Issue
Block a user