Cleaned up some warnings found when compiling with Visual Studio Express 2010.

This commit is contained in:
skarg
2014-01-14 20:03:00 +00:00
parent bfa26b769f
commit c3326b324c
8 changed files with 23 additions and 20 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ void datetime_add_minutes(
if (minutes < 0) {
/* convert to positive for easier math */
minutes *= -1;
if (minutes > bdatetime_minutes) {
if ((uint32_t)minutes > bdatetime_minutes) {
/* previous day */
bdatetime_days -= 1;
bdatetime_minutes += ((24 * 60) - minutes);