lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] LWIP_U32_DIFF is unnecessarily complex


From: Mike Kleshov
Subject: Re: [lwip-devel] LWIP_U32_DIFF is unnecessarily complex
Date: Wed, 23 Nov 2011 15:17:53 +0400

On 23 November 2011 15:11, Mason <address@hidden> wrote:
> I think your question is equivalent to asking whether the
> following statement is well-defined.
>
>  unsigned n = -42; /*** -42 has type int ***/
>
> 3.2 CONVERSIONS
> 3.2.1.2 Signed and unsigned integers

No, it isn't.
There is no type conversion involved in (a - b) where both a and b are u32_t.

Regards,
- Mike



reply via email to

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