Merge pull request #3114 from tyustli/cpp

[components] [cplusplus] fix Queue.h mpool bug
This commit is contained in:
Bernard Xiong authored and GitHub committed 2019-09-30 19:54:39 +08:00
commit 45e905141c
1 file changed
+1 -1
+1 -1
View File
@@ -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];
};
}