未验证 提交 45e90514 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3114 from tyustli/cpp

[components] [cplusplus] fix Queue.h mpool bug
......@@ -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];
};
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册