X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9104957deccc59e0e804215d5db498fabfd40d29..c86fbd9ddd59c63d254ddc5f9f661889419df5f9:/src/xbt/xbt_main.cpp diff --git a/src/xbt/xbt_main.cpp b/src/xbt/xbt_main.cpp index 324c2bf6c5..317741d265 100644 --- a/src/xbt/xbt_main.cpp +++ b/src/xbt/xbt_main.cpp @@ -87,12 +87,12 @@ static void xbt_preinit() GetSystemInfo(&si); xbt_pagesize = si.dwPageSize; #elif HAVE_SYSCONF - xbt_pagesize = sysconf(_SC_PAGESIZE); + xbt_pagesize = static_cast(sysconf(_SC_PAGESIZE)); #else # error Cannot get page size. #endif - xbt_pagebits = log2(xbt_pagesize); + xbt_pagebits = static_cast(log2(xbt_pagesize)); #ifdef _TWO_DIGIT_EXPONENT /* Even printf behaves differently on Windows... */