Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src/common/container/etStaticDeque.c')
-rw-r--r--runtime/org.eclipse.etrice.runtime.c/src/common/container/etStaticDeque.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/container/etStaticDeque.c b/runtime/org.eclipse.etrice.runtime.c/src/common/container/etStaticDeque.c
index 763185dee..7c08cc716 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/container/etStaticDeque.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/container/etStaticDeque.c
@@ -14,11 +14,11 @@
#include <string.h>
-void etStaticDeque_construct(etStaticDeque* const self, void* memory, int size, int objectSize) {
+void etStaticDeque_construct(etStaticDeque* const self, void* memory, int memorySize, int objectSize) {
self->size = 0;
self->first = 0;
self->memory = memory;
- self->maxSize = size;
+ self->maxSize = memorySize / objectSize;
self->objectSize = objectSize;
etStaticDeque_clear(self);

Back to the top