File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ void __aeabi_ ## name(double_unsigned_struct val) \
177177 ret .high = 0 ; \
178178 ret .low = 1 << exp ; \
179179 if (exp > DOUBLE_FRAC_BITS - 32 ) { \
180- high_shift = exp - DOUBLE_FRAC_BITS - 32 ; \
180+ high_shift = exp - ( DOUBLE_FRAC_BITS - 32 ); \
181181 ret .low |= val .high << high_shift ; \
182182 ret .low |= val .low >> (32 - high_shift ); \
183183 } else \
Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ conv (union u *p)
1414int main (void )
1515{
1616 union u v ;
17+ double d = 1234567890.0 ;
1718
1819 v .ld = 42 ;
1920 conv (& v );
2021 printf ("%lu\n" , v .ul );
22+ printf ("%llu\n" , (unsigned long long )d );
2123 return 0 ;
2224}
Original file line number Diff line number Diff line change 1142
2+ 1234567890
You can’t perform that action at this time.
0 commit comments