File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,17 @@ void testExpandShrink( void )
18
18
MRFaceId face ; face .id = 0 ;
19
19
MRFaceBitSet * region = mrExpandFaceRegionFromFace ( top , face , 3 );
20
20
21
- size_t num = mrBitSetCount ( (MRBitSet * )region );
22
- TEST_ASSERT ( num == 75 );
21
+ int num = ( int ) mrBitSetCount ( (MRBitSet * )region );
22
+ TEST_ASSERT_INT_EQUAL ( num , 75 );
23
23
24
24
mrExpandFaceRegion ( top , region , 3 );
25
- num = mrBitSetCount ( ( MRBitSet * )region );
26
- TEST_ASSERT ( num > 75 ); //platform dependent results
25
+ num = (int )mrBitSetCount ( ( MRBitSet * )region );
26
+ TEST_ASSERT ( num == 274 || // without FMA instruction (default settings for x86 or old compilers for ARM)
27
+ num == 284 ); // with FMA instruction (modern compilers for ARM)
27
28
28
29
mrShrinkFaceRegion ( top , region , 3 );
29
- num = mrBitSetCount ( ( MRBitSet * )region );
30
- TEST_ASSERT ( num == 75 );
30
+ num = ( int ) mrBitSetCount ( ( MRBitSet * )region );
31
+ TEST_ASSERT_INT_EQUAL ( num , 75 );
31
32
32
33
mrFaceBitSetFree ( region );
33
34
mrMeshFree ( mesh );
You can’t perform that action at this time.
0 commit comments