File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ class FloatToString {
491
491
492
492
LIBC_INLINE constexpr BlockInt get_negative_block (int block_index) {
493
493
if (exponent < 0 ) {
494
- const int32_t idx = -exponent / IDX_SIZE;
494
+ const int32_t idx = -exponent / static_cast < int32_t >( IDX_SIZE) ;
495
495
496
496
UInt<MID_INT_SIZE> val;
497
497
@@ -579,7 +579,7 @@ class FloatToString {
579
579
580
580
return num_requested_digits > -exponent;
581
581
#else
582
- const int32_t idx = -exponent / IDX_SIZE;
582
+ const int32_t idx = -exponent / static_cast < int32_t >( IDX_SIZE) ;
583
583
const size_t p =
584
584
POW10_OFFSET_2[idx] + negative_block_index - MIN_BLOCK_2[idx];
585
585
// If the remaining digits are all 0, then this is the lowest block.
@@ -601,7 +601,7 @@ class FloatToString {
601
601
}
602
602
return 0 ;
603
603
#else
604
- return MIN_BLOCK_2[-exponent / IDX_SIZE];
604
+ return MIN_BLOCK_2[-exponent / static_cast < int32_t >( IDX_SIZE) ];
605
605
#endif
606
606
}
607
607
};
You can’t perform that action at this time.
0 commit comments