X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d2d42db295dae074e51a8fceb90d71057e75b866..a0d7ce2cffa227ad70413b43f5e7e0d62489823c:/src/xbt/xbt_log_layout_format.cpp diff --git a/src/xbt/xbt_log_layout_format.cpp b/src/xbt/xbt_log_layout_format.cpp index 9a0e7fe72f..00e58fd526 100644 --- a/src/xbt/xbt_log_layout_format.cpp +++ b/src/xbt/xbt_log_layout_format.cpp @@ -99,7 +99,7 @@ static int xbt_log_layout_format_doit(const s_xbt_log_layout_t* l, xbt_log_event check_overflow(1); break; case '.': /* precision specifier */ - precision = strtol(q + 1, &q, 10); + precision = static_cast(strtol(q + 1, &q, 10)); continue; /* conversion specifier still not found, continue reading */ case '0': case '1': @@ -111,7 +111,7 @@ static int xbt_log_layout_format_doit(const s_xbt_log_layout_t* l, xbt_log_event case '7': case '8': case '9': /* length modifier */ - length = strtol(q, &q, 10); + length = static_cast(strtol(q, &q, 10)); continue; /* conversion specifier still not found, continue reading */ case 'c': /* category name; LOG4J compliant should accept a precision postfix to show the hierarchy */