use unsigned long long for uc_ms2tv()
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ uc_tvcmp(const struct timeval *a, const struct timeval *b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct timeval *
|
struct timeval *
|
||||||
uc_to2tv(struct timeval *dst, unsigned long ms)
|
uc_ms2tv(struct timeval *dst, unsigned long long ms)
|
||||||
{
|
{
|
||||||
dst->tv_sec = ms / 1000;
|
dst->tv_sec = ms / 1000;
|
||||||
dst->tv_usec = ms % 1000 * 1000;
|
dst->tv_usec = ms % 1000 * 1000;
|
||||||
|
|||||||
Reference in New Issue
Block a user