mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 07:43:30 +08:00
fix Queue.h mpool bug
This commit is contained in:
parent
076addc9ea
commit
7adbabca87
@ -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];
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user