aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/src/chheap.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/src/chheap.c')
-rw-r--r--os/rt/src/chheap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/rt/src/chheap.c b/os/rt/src/chheap.c
index 534a3430c..6f9cff77f 100644
--- a/os/rt/src/chheap.c
+++ b/os/rt/src/chheap.c
@@ -96,7 +96,7 @@ void _heap_init(void) {
#if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
chMtxObjectInit(&default_heap.h_mtx);
#else
- chSemObjectInit(&default_heap.h_sem, 1);
+ chSemObjectInit(&default_heap.h_sem, (cnt_t)1);
#endif
}
@@ -124,7 +124,7 @@ void chHeapObjectInit(memory_heap_t *heapp, void *buf, size_t size) {
#if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
chMtxObjectInit(&heapp->h_mtx);
#else
- chSemObjectInit(&heapp->h_sem, 1);
+ chSemObjectInit(&heapp->h_sem, (cnt_t)1);
#endif
}