summaryrefslogtreecommitdiff
path: root/plugins/TrafficCounter/src/misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TrafficCounter/src/misc.cpp')
-rw-r--r--plugins/TrafficCounter/src/misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TrafficCounter/src/misc.cpp b/plugins/TrafficCounter/src/misc.cpp
index 196ec13abb..fa304ad0de 100644
--- a/plugins/TrafficCounter/src/misc.cpp
+++ b/plugins/TrafficCounter/src/misc.cpp
@@ -159,7 +159,7 @@ size_t GetFormattedTraffic(DWORD Value, BYTE Unit, TCHAR *Buffer, size_t Size)
l += mir_tstrlen(szUnit) + 1;
Res = (TCHAR*)malloc(l * sizeof(TCHAR));
if (!Res) return 0;
- GetNumberFormat(LOCALE_USER_DEFAULT, 0, Str1, &nf, Res, l);
+ GetNumberFormat(LOCALE_USER_DEFAULT, 0, Str1, &nf, Res, (int)l);
mir_tstrcat(Res, szUnit);
if (Size && Buffer)