mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
win32: fixup printf warnings
This commit is contained in:
parent
fca88d2e98
commit
55925cabe8
2 changed files with 3 additions and 3 deletions
|
@ -180,9 +180,9 @@ static LPSTR hms(UINT seconds)
|
|||
hours = minutes / 60;
|
||||
minutes %= 60;
|
||||
if (hours > 0)
|
||||
sprintf (s, "%lu:%02lu:%02lu", hours, minutes, seconds);
|
||||
sprintf (s, "%lu:%02lu:%02lu", (long unsigned int)hours, (long unsigned int)minutes, (long unsigned int)seconds);
|
||||
else
|
||||
sprintf (s, "%2lu:%02lu", minutes, seconds);
|
||||
sprintf (s, "%2lu:%02lu", (long unsigned int)minutes, (long unsigned int)seconds);
|
||||
return s;
|
||||
}
|
||||
|
||||
|
|
|
@ -470,7 +470,7 @@ static inline BOOL tlErrorMessage(const TCHAR *err)
|
|||
//
|
||||
// warn user if there is one
|
||||
//
|
||||
printf("Error %Ts..\n", err);
|
||||
printf("Error %s..\n", err);
|
||||
fflush(stdout);
|
||||
|
||||
MessageBox(hWndMain, err, TEXT("ERROR"), MB_OK);
|
||||
|
|
Loading…
Reference in a new issue