aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/oslib/src/chheap.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/oslib/src/chheap.c')
-rw-r--r--os/common/oslib/src/chheap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/common/oslib/src/chheap.c b/os/common/oslib/src/chheap.c
index d6e2eeca6..d3d25458f 100644
--- a/os/common/oslib/src/chheap.c
+++ b/os/common/oslib/src/chheap.c
@@ -135,7 +135,9 @@ void chHeapObjectInit(memory_heap_t *heapp, void *buf, size_t size) {
/* Adjusting the size in case the initial block was not correctly
aligned.*/
+ /*lint -save -e9033 [10.8] Required cast operations.*/
size -= (size_t)((uint8_t *)hp - (uint8_t *)buf);
+ /*lint restore*/
/* Initializing the heap header.*/
heapp->provider = NULL;