Use typecast instead of ULL for a less whiny lint on LP64.
This commit is contained in:
parent
283c2ca905
commit
ffe194d485
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: puffs.c,v 1.103 2010/01/07 22:49:19 pooka Exp $ */
|
/* $NetBSD: puffs.c,v 1.104 2010/01/07 23:03:26 pooka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2005, 2006, 2007 Antti Kantee. All Rights Reserved.
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if !defined(lint)
|
#if !defined(lint)
|
||||||
__RCSID("$NetBSD: puffs.c,v 1.103 2010/01/07 22:49:19 pooka Exp $");
|
__RCSID("$NetBSD: puffs.c,v 1.104 2010/01/07 23:03:26 pooka Exp $");
|
||||||
#endif /* !lint */
|
#endif /* !lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -154,7 +154,7 @@ puffs__nextreq(struct puffs_usermount *pu)
|
||||||
uint64_t rv;
|
uint64_t rv;
|
||||||
|
|
||||||
PU_LOCK();
|
PU_LOCK();
|
||||||
rv = pu->pu_nextreq++ | 1ULL<<63;
|
rv = pu->pu_nextreq++ | (uint64_t)1<<63;
|
||||||
PU_UNLOCK();
|
PU_UNLOCK();
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
|
Loading…
Reference in New Issue