@@ -1162,7 +1162,7 @@ auto is_left_endpoint_integer_shorter_interval(int exponent) noexcept -> bool {
11621162}
11631163
11641164// Remove trailing zeros from n and return the number of zeros removed (float).
1165- FMT_INLINE int remove_trailing_zeros (uint32_t & n, int s = 0 ) noexcept {
1165+ FMT_INLINE auto remove_trailing_zeros (uint32_t & n, int s = 0 ) noexcept -> int {
11661166 FMT_ASSERT (n != 0 , " " );
11671167 // Modular inverse of 5 (mod 2^32): (mod_inv_5 * 5) mod 2^32 = 1.
11681168 constexpr uint32_t mod_inv_5 = 0xcccccccd ;
@@ -1183,7 +1183,7 @@ FMT_INLINE int remove_trailing_zeros(uint32_t& n, int s = 0) noexcept {
11831183}
11841184
11851185// Removes trailing zeros and returns the number of zeros removed (double).
1186- FMT_INLINE int remove_trailing_zeros (uint64_t & n) noexcept {
1186+ FMT_INLINE auto remove_trailing_zeros (uint64_t & n) noexcept -> int {
11871187 FMT_ASSERT (n != 0 , " " );
11881188
11891189 // Is n is divisible by 10^8?
@@ -1219,7 +1219,7 @@ FMT_INLINE int remove_trailing_zeros(uint64_t& n) noexcept {
12191219
12201220// The main algorithm for shorter interval case
12211221template <typename T>
1222- FMT_INLINE decimal_fp<T> shorter_interval_case (int exponent) noexcept {
1222+ FMT_INLINE auto shorter_interval_case (int exponent) noexcept -> decimal_fp<T> {
12231223 decimal_fp<T> ret_value;
12241224 // Compute k and beta
12251225 const int minus_k = floor_log10_pow2_minus_log10_4_over_3 (exponent);
@@ -1555,7 +1555,7 @@ template <typename F> class glibc_file : public file_base<F> {
15551555
15561556 void advance_write_buffer (size_t size) { this ->file_ ->_IO_write_ptr += size; }
15571557
1558- bool needs_flush () const {
1558+ auto needs_flush () const -> bool {
15591559 if ((this ->file_ ->_flags & line_buffered) == 0 ) return false ;
15601560 char * end = this ->file_ ->_IO_write_end ;
15611561 auto size = max_of<ptrdiff_t >(this ->file_ ->_IO_write_ptr - end, 0 );
@@ -1604,7 +1604,7 @@ template <typename F> class apple_file : public file_base<F> {
16041604 this ->file_ ->_w -= size;
16051605 }
16061606
1607- bool needs_flush () const {
1607+ auto needs_flush () const -> bool {
16081608 if ((this ->file_ ->_flags & line_buffered) == 0 ) return false ;
16091609 return memchr (this ->file_ ->_p + this ->file_ ->_w , ' \n ' ,
16101610 to_unsigned (-this ->file_ ->_w ));
0 commit comments