summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-09-30 19:54:39 +0800
committerGitHub <[email protected]>2019-09-30 19:54:39 +0800
commit45e905141cec991997901fbaec435c30fc0479be (patch)
treed0ab8c3d8b656c7484ef4bec8b2d987531fc74e7 /components
parent076addc9ea0d47ff5520032c47df2153e9c2eb05 (diff)
parent7adbabca871f7139cbeaff773569f83964ddfdd1 (diff)
Merge pull request #3114 from tyustli/cpp
[components] [cplusplus] fix Queue.h mpool bug
Diffstat (limited to 'components')
-rw-r--r--components/cplusplus/Queue.h2
1 files changed, 1 insertions, 1 deletions
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];
};
}