@@ -200,8 +200,8 @@ struct StrtoTest : public LIBC_NAMESPACE::testing::Test {
200
200
char small_string[4 ] = {' \0 ' , ' \0 ' , ' \0 ' , ' \0 ' };
201
201
for (int base = 2 ; base <= 36 ; ++base) {
202
202
for (int first_digit = 0 ; first_digit <= 36 ; ++first_digit) {
203
- small_string[0 ] =
204
- LIBC_NAMESPACE::internal::int_to_b36_char (first_digit);
203
+ small_string[0 ] = static_cast < char >(
204
+ LIBC_NAMESPACE::internal::int_to_b36_char (first_digit)) ;
205
205
if (first_digit < base) {
206
206
LIBC_NAMESPACE::libc_errno = 0 ;
207
207
ASSERT_EQ (func (small_string, nullptr , base),
@@ -217,11 +217,11 @@ struct StrtoTest : public LIBC_NAMESPACE::testing::Test {
217
217
218
218
for (int base = 2 ; base <= 36 ; ++base) {
219
219
for (int first_digit = 0 ; first_digit <= 36 ; ++first_digit) {
220
- small_string[0 ] =
221
- LIBC_NAMESPACE::internal::int_to_b36_char (first_digit);
220
+ small_string[0 ] = static_cast < char >(
221
+ LIBC_NAMESPACE::internal::int_to_b36_char (first_digit)) ;
222
222
for (int second_digit = 0 ; second_digit <= 36 ; ++second_digit) {
223
- small_string[1 ] =
224
- LIBC_NAMESPACE::internal::int_to_b36_char (second_digit);
223
+ small_string[1 ] = static_cast < char >(
224
+ LIBC_NAMESPACE::internal::int_to_b36_char (second_digit)) ;
225
225
if (first_digit < base && second_digit < base) {
226
226
LIBC_NAMESPACE::libc_errno = 0 ;
227
227
ASSERT_EQ (
@@ -244,14 +244,14 @@ struct StrtoTest : public LIBC_NAMESPACE::testing::Test {
244
244
245
245
for (int base = 2 ; base <= 36 ; ++base) {
246
246
for (int first_digit = 0 ; first_digit <= 36 ; ++first_digit) {
247
- small_string[0 ] =
248
- LIBC_NAMESPACE::internal::int_to_b36_char (first_digit);
247
+ small_string[0 ] = static_cast < char >(
248
+ LIBC_NAMESPACE::internal::int_to_b36_char (first_digit)) ;
249
249
for (int second_digit = 0 ; second_digit <= 36 ; ++second_digit) {
250
- small_string[1 ] =
251
- LIBC_NAMESPACE::internal::int_to_b36_char (second_digit);
250
+ small_string[1 ] = static_cast < char >(
251
+ LIBC_NAMESPACE::internal::int_to_b36_char (second_digit)) ;
252
252
for (int third_digit = 0 ; third_digit <= limit; ++third_digit) {
253
- small_string[2 ] =
254
- LIBC_NAMESPACE::internal::int_to_b36_char (third_digit);
253
+ small_string[2 ] = static_cast < char >(
254
+ LIBC_NAMESPACE::internal::int_to_b36_char (third_digit)) ;
255
255
256
256
if (first_digit < base && second_digit < base &&
257
257
third_digit < base) {
0 commit comments