diff --git a/clientgui/DlgAdvPreferences.cpp b/clientgui/DlgAdvPreferences.cpp index 139d4e2024..2fb34f6f54 100644 --- a/clientgui/DlgAdvPreferences.cpp +++ b/clientgui/DlgAdvPreferences.cpp @@ -254,7 +254,7 @@ wxString CDlgAdvPreferences::DoubleToTimeString(double dt) { // and the value is displayed as 0.00 but is actually 0.001. // double CDlgAdvPreferences::RoundToHundredths(double td) { - __int64 i = (__int64)((td + .005) * 100.); + int64_t i = (int64_t)((td + .005) * 100.); return ((double)(i) / 100.); } diff --git a/clientgui/sg_DlgPreferences.cpp b/clientgui/sg_DlgPreferences.cpp index 0b2d4265e7..a7d139400b 100644 --- a/clientgui/sg_DlgPreferences.cpp +++ b/clientgui/sg_DlgPreferences.cpp @@ -618,7 +618,7 @@ wxString CPanelPreferences::DoubleToTimeString(double dt) { // and the value is displayed as 0.00 but is actually 0.001. // double CPanelPreferences::RoundToHundredths(double td) { - __int64 i = (__int64)((td + .005) * 100.); + int64_t i = (int64_t)((td + .005) * 100.); return ((double)(i) / 100.); }