Fix compile warning when using GCC:
Comparison between signed and unsigned. MFC after: 1 week
This commit is contained in:
parent
95102a8bcb
commit
f3a2bb16ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245222
@ -557,7 +557,7 @@ m_get2(int how, short type, int flags, int size)
|
||||
args.flags = flags;
|
||||
args.type = type;
|
||||
|
||||
if (size <= MHLEN || (size <= MLEN && (flags & M_PKTHDR) == 0))
|
||||
if (size <= ((int)MHLEN) || (size <= ((int)MLEN) && (flags & M_PKTHDR) == 0))
|
||||
return ((struct mbuf *)(uma_zalloc_arg(zone_mbuf, &args, how)));
|
||||
if (size <= MCLBYTES)
|
||||
return ((struct mbuf *)(uma_zalloc_arg(zone_pack, &args, how)));
|
||||
|
Loading…
Reference in New Issue
Block a user