File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ get is64Bit => 8 == sizeOf<IntPtr>();
1616void main () async {
1717 if (is32Bit) {
1818 Expect .equals (4 , sizeOf <Pointer >());
19- Expect .equals (20 , sizeOf <Coordinate >());
20- }
21- if (is64Bit) {
19+ // Struct is 20 bytes on ia32 and arm32-iOS, but 24 bytes on arm32-Android
20+ // and arm32-Linux due to alignment.
21+ Expect .isTrue (20 == sizeOf <Coordinate >() || 24 == sizeOf <Coordinate >());
22+ } else if (is64Bit) {
2223 Expect .equals (8 , sizeOf <Pointer >());
2324 Expect .equals (24 , sizeOf <Coordinate >());
2425 }
Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ get is64Bit => 8 == sizeOf<IntPtr>();
1616void main () async {
1717 if (is32Bit) {
1818 Expect .equals (4 , sizeOf <Pointer >());
19- Expect .equals (20 , sizeOf <Coordinate >());
20- }
21- if (is64Bit) {
19+ // Struct is 20 bytes on ia32 and arm32-iOS, but 24 bytes on arm32-Android
20+ // and arm32-Linux due to alignment.
21+ Expect .isTrue (20 == sizeOf <Coordinate >() || 24 == sizeOf <Coordinate >());
22+ } else if (is64Bit) {
2223 Expect .equals (8 , sizeOf <Pointer >());
2324 Expect .equals (24 , sizeOf <Coordinate >());
2425 }
You can’t perform that action at this time.
0 commit comments