lwip-users
[Top][All Lists]
Advanced

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

AW: [lwip-users] ioctl() plus compiler warnings/errors


From: Zschocke, Florian
Subject: AW: [lwip-users] ioctl() plus compiler warnings/errors
Date: Mon, 17 Feb 2003 16:47:47 +0100

address@hidden wrote on Montag, 17. Februar 2003 16:36:

> Hello,
> 
> I think the preferable method is to define the constants with a
> U suffix (unsigned). 

They are, but that doesn't help in this case. It's probably a compiler
error, not to cut the constant to the correct length of the variable if
possible.

#define TF_FOO 0x2U
char c;

This works: 
c = TF_FOO;

This doesn't:
c = ~TF_FOO

This does:

c = (char)~TF_FOO

Florian.




reply via email to

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