mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
iob_trimhead: fix an integer truncation
I guess this fixes https://github.com/apache/incubator-nuttx/issues/4181
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
FAR struct iob_s *iob_trimhead(FAR struct iob_s *iob, unsigned int trimlen,
|
||||
enum iob_user_e producerid)
|
||||
{
|
||||
uint16_t pktlen;
|
||||
unsigned int pktlen;
|
||||
|
||||
iobinfo("iob=%p trimlen=%d\n", iob, trimlen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user