Commit 820b4643 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

secstotimestr: use int32_t not to overflow if int exceeds 32-bits

parent 9d269c5b
......@@ -58,7 +58,7 @@ VLC_EXPORT( char *, mstrtime, ( char *psz_buffer, mtime_t date ) );
VLC_EXPORT( mtime_t, mdate, ( void ) );
VLC_EXPORT( void, mwait, ( mtime_t date ) );
VLC_EXPORT( void, msleep, ( mtime_t delay ) );
VLC_EXPORT( char *, secstotimestr, ( char *psz_buffer, int secs ) );
VLC_EXPORT( char *, secstotimestr, ( char *psz_buffer, int32_t secs ) );
# define VLC_HARD_MIN_SLEEP 10000 /* 10 milliseconds = 1 tick at 100Hz */
......
......@@ -125,7 +125,7 @@ char *mstrtime( char *psz_buffer, mtime_t date )
* \param psz_buffer should be a buffer at least MSTRTIME_MAX_SIZE characters
* \return psz_buffer is returned so this can be used as printf parameter.
*/
char *secstotimestr( char *psz_buffer, int i_seconds )
char *secstotimestr( char *psz_buffer, int32_t i_seconds )
{
div_t d;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment