From 4875ee8a3ab95c4fbf1e09941d3f44d99a9a632b Mon Sep 17 00:00:00 2001 From: armink Date: Tue, 17 Dec 2019 20:11:46 +0800 Subject: Sync from master (75a3f3dd3a930eab1dc58fa0258a9d1605a0ac11) --- components/cplusplus/Queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/cplusplus/Queue.h') diff --git a/components/cplusplus/Queue.h b/components/cplusplus/Queue.h index 351e3ec66b..23a4638798 100644 --- a/components/cplusplus/Queue.h +++ b/components/cplusplus/Queue.h @@ -68,7 +68,7 @@ public: private: struct rt_messagequeue mID; - char mPool[(sizeof(struct rt_messagequeue) + sizeof(T)) * queue_sz]; + char mPool[(sizeof(void *) + RT_ALIGN(sizeof(T), RT_ALIGN_SIZE)) * queue_sz]; }; } -- cgit v1.3.1