mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Win32: all fails of DD and try more to stop format-overflow errors
This commit is contained in:
parent
a4072260db
commit
0250040a5b
2 changed files with 6 additions and 2 deletions
|
@ -39,6 +39,10 @@ configuration:
|
||||||
- SDL
|
- SDL
|
||||||
- DD
|
- DD
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- configuration: DD
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- set Path=%MINGW_SDK%\bin;%Path%
|
- set Path=%MINGW_SDK%\bin;%Path%
|
||||||
- i686-w64-mingw32-gcc --version
|
- i686-w64-mingw32-gcc --version
|
||||||
|
|
|
@ -180,9 +180,9 @@ static LPSTR hms(UINT seconds)
|
||||||
hours = minutes / 60;
|
hours = minutes / 60;
|
||||||
minutes %= 60;
|
minutes %= 60;
|
||||||
if (hours > 0)
|
if (hours > 0)
|
||||||
sprintf (s, "%lu:%02u:%02u", (long unsigned int)hours, (unsigned char)minutes, (unsigned char)seconds);
|
sprintf (s, "%lu:%02u:%02u", (long unsigned int)hours, (unsigned char)(minutes%99), (unsigned char)(seconds%99));
|
||||||
else
|
else
|
||||||
sprintf (s, "%2u:%02u", (unsigned char)minutes, (unsigned char)seconds);
|
sprintf (s, "%2u:%02u", (unsigned char)(minutes%99), (unsigned char)(seconds%99));
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue