On 1 April 2011 06:02, Pavel Shramov <[email protected]> wrote:

> u32_var = ((u32) (u16) s16_var);
>
> u16 casts s16 to 16 bit positive number.

So, (s16)-10 == 32778?

(I could just check, but I won't be near a C compiler until sunday)

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to