summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Weather/src/weather_conv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Weather/src/weather_conv.cpp b/plugins/Weather/src/weather_conv.cpp
index b26e15cd32..c986ab7530 100644
--- a/plugins/Weather/src/weather_conv.cpp
+++ b/plugins/Weather/src/weather_conv.cpp
@@ -63,7 +63,7 @@ static void numToStr(double num, TCHAR *str, size_t strSize)
w /= 10;
}
- if (i < 0 && (w || r)) *(str++) = '-';
+ if (i < 0 && (w || r)) w = -w;
if (r)
mir_sntprintf(str, strSize, _T("%i.%i"), w, r);
else