Jonathan Gopel b3a4f28ad1
Fix implicit signedness conversion warning (#1963)
Problem:
- On Apple clang 11.0.3 (clang-1103.0.32.62), pedantic mode compilation
  generates the following error:

    test/std-format-test.cc:114:22: error: implicit conversion changes
          signedness: 'int' to 'size_t' (aka 'unsigned long')
          [-Werror,-Wsign-conversion]
        width_arg_id = c - '0';
                     ~ ~~^~~~~

Solution:
- Use a `to_unsigned` to make the conversion explicit. This is
  guaranteed to be safe due to the check before the ASCII-to-int
  conversion.
2020-10-29 06:26:18 -07:00
..
2020-10-16 07:35:53 -07:00
2017-03-09 06:09:43 -08:00
2020-10-11 10:13:42 -07:00
2020-09-06 09:26:32 -07:00
2020-10-11 10:13:42 -07:00
2020-09-06 08:24:15 -07:00
2020-09-01 08:48:56 -07:00
2020-05-10 07:34:30 -07:00
2020-04-01 08:42:14 -07:00
2020-10-28 05:35:37 -07:00
2020-05-10 07:34:30 -07:00
2020-06-06 08:15:33 -07:00
2020-05-07 15:59:46 -07:00
2020-05-07 15:59:46 -07:00