diff options
| author | Bernard Xiong <[email protected]> | 2019-12-21 06:40:47 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-21 06:40:47 +0800 |
| commit | 0c11cd86717295bc4c41d7421e4119a62bbbfa11 (patch) | |
| tree | 594994078d07de40ba37c47d5d5c536a51bfe0fc /components/cplusplus/Queue.h | |
| parent | 3491b2f0f470d3834763b9d78071ce7804597c94 (diff) | |
| parent | a383385a3c0a676cee4471fd3cb4f372a36e1023 (diff) | |
Merge pull request #3274 from armink/lts-v3.1.x
Lts v3.1.x
Diffstat (limited to 'components/cplusplus/Queue.h')
| -rw-r--r-- | components/cplusplus/Queue.h | 2 |
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]; }; } |
