Skip to content

Commit a7fd185

Browse files
Bug, CoroutineInfo可能发生非对齐访问
1 parent 0fddcd7 commit a7fd185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/YY/Base/Threading/Coroutine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ namespace YY
9393
public:
9494
intptr_t iReserved = 0;
9595

96-
struct CoroutineInfo
96+
struct alignas(sizeof(intptr_t) * 2) CoroutineInfo
9797
{
9898
// 0 hCoroutineHandle
9999
// 1 pOwner

0 commit comments

Comments
 (0)