Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix native event memory align on 32 bit devices. #1182

Merged
merged 3 commits into from
Mar 2, 2022

Conversation

andycall
Copy link
Member

@andycall andycall commented Feb 24, 2022

修复 nativeEvent 在 32位机器上的内存对齐问题。

Dart 发送给 Native 的事件都是按照 64位机器的规则进行内存布局。因此需要避免在 Native 测的 NativeEvent 声明中使用指针类型,因为它会导致在 32位机器上,按照 32 位的规则来进行偏移。

@answershuto answershuto merged commit 6e10c87 into main Mar 2, 2022
@answershuto answershuto deleted the fix/event_crash_on_32bit branch March 2, 2022 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants