lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #57565] _IO, _IOR, _IOW macros expect sizeof() result


From: Victor Brzeski
Subject: [lwip-devel] [bug #57565] _IO, _IOR, _IOW macros expect sizeof() result to be long type - not always true
Date: Fri, 10 Jan 2020 11:56:42 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36

Follow-up Comment #3, bug #57565 (project lwip):


[comment #2 comment #2:]
> [comment #1 comment #1:]
> > So did you get compiler warnings without casting sizeof(t) to long? If so,
could you copy them here?
> 
> lwip\lwip-2.1.2\src\api\sockets.c(3848): warning C200: '<<': shift factor
out of range, truncated
> unreachable code
> 
> Compiler is Keil C166 v7.57

Simon,

I would like to propose a simpler solution. Just change:
#define IOCPARM_MASK 0x7fU
to
#define IOCPARM_MASK 0x7fUL



    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?57565>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]