mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
Merge pull request #3114 from tyustli/cpp
[components] [cplusplus] fix Queue.h mpool bug
This commit is contained in:
1 file changed
+1
-1
@@ -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];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user