@@ -403,29 +403,29 @@ void write_table(const table& t, const char* filename)
403403
404404 out << data_horizontal_line << " \n " ;
405405
406- out << " " << std::setw (first_column_width) << " " ;
407- out << std::setw (table_width - first_column_width - 3 )
406+ out << " " << std::setw (static_cast < int >( first_column_width) ) << " " ;
407+ out << std::setw (static_cast < int >( table_width - first_column_width - 3 ) )
408408 << std::string (" | sizeof(element): " ) + std::to_string (ELEMENT_SIZE ) << " |\n " ;
409409
410410 out << data_horizontal_line << " \n " ;
411411
412- out << " " << std::setw (first_column_width) << " " ;
412+ out << " " << std::setw (static_cast < int >( first_column_width) ) << " " ;
413413 for (const benchmark_result& res: t) {
414- out << " | " << std::setw (data_column_width) << res.title ;
414+ out << " | " << std::setw (static_cast < int >( data_column_width) ) << res.title ;
415415 }
416416 out << " |\n " ;
417417
418418 out << data_horizontal_line << " \n " ;
419419
420- out << " " << std::setw (first_column_width) << " " ;
420+ out << " " << std::setw (static_cast < int >( first_column_width) ) << " " ;
421421 for (std::size_t i = 0 ; i < num_data_columns; ++i) {
422- out << " | " << std::setw (data_column_width) << " container size" ;
422+ out << " | " << std::setw (static_cast < int >( data_column_width) ) << " container size" ;
423423 }
424424 out << " |\n " ;
425425
426426 out << table_horizontal_line << " \n " ;
427427
428- out << " | " << std::setw (first_column_width) << " erase rate" ;
428+ out << " | " << std::setw (static_cast < int >( first_column_width) ) << " erase rate" ;
429429 for (std::size_t i = 0 ; i < num_data_columns; ++i) {
430430 out << " | " ;
431431 for (auto j = min_size_exp; j <= max_size_exp; ++j) {
@@ -440,7 +440,7 @@ void write_table(const table& t, const char* filename)
440440 for (double erasure_rate = min_erasure_rate;
441441 erasure_rate <= max_erasure_rate;
442442 erasure_rate += erase_rate_inc, ++row) {
443- out << " | " << std::setw (first_column_width) << erasure_rate;
443+ out << " | " << std::setw (static_cast < int >( first_column_width) ) << erasure_rate;
444444 for (const benchmark_result& res: t) {
445445 out << " | " ;
446446 for (const auto & x: res.data [row]) {
0 commit comments