Cast the return value of tvtohz() from a long to an int to satisfy the
compiler that we know what we're doing (the value returned has already been restricted to int ranges). Reviewed by: bde
This commit is contained in:
parent
825d77e5f0
commit
d611666328
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40012
@ -39,7 +39,7 @@ static volatile int print_tci = 1;
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
|
||||
* $Id: kern_clock.c,v 1.78 1998/08/05 18:06:40 bde Exp $
|
||||
* $Id: kern_clock.c,v 1.79 1998/09/15 10:05:18 gibbs Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -269,7 +269,7 @@ tvtohz(tv)
|
||||
ticks = LONG_MAX;
|
||||
if (ticks > INT_MAX)
|
||||
ticks = INT_MAX;
|
||||
return (ticks);
|
||||
return ((int)ticks);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -39,7 +39,7 @@ static volatile int print_tci = 1;
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_clock.c 8.5 (Berkeley) 1/21/94
|
||||
* $Id: kern_clock.c,v 1.78 1998/08/05 18:06:40 bde Exp $
|
||||
* $Id: kern_clock.c,v 1.79 1998/09/15 10:05:18 gibbs Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -269,7 +269,7 @@ tvtohz(tv)
|
||||
ticks = LONG_MAX;
|
||||
if (ticks > INT_MAX)
|
||||
ticks = INT_MAX;
|
||||
return (ticks);
|
||||
return ((int)ticks);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user