提交 39cd72de 编写于 作者: L Linus Torvalds
......@@ -31,9 +31,9 @@
/*
* Ease the printing of nsec fields:
*/
static long long nsec_high(long long nsec)
static long long nsec_high(unsigned long long nsec)
{
if (nsec < 0) {
if ((long long)nsec < 0) {
nsec = -nsec;
do_div(nsec, 1000000);
return -nsec;
......@@ -43,9 +43,9 @@ static long long nsec_high(long long nsec)
return nsec;
}
static unsigned long nsec_low(long long nsec)
static unsigned long nsec_low(unsigned long long nsec)
{
if (nsec < 0)
if ((long long)nsec < 0)
nsec = -nsec;
return do_div(nsec, 1000000);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册