cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble ORing two bytes into a 16-bit int with Cosmic Compiler

srussell
Associate II
Posted on October 27, 2010 at 22:10

Trouble ORing two bytes into a 16-bit int with Cosmic Compiler

1 REPLY 1
luca239955_stm1_st
Senior II
Posted on May 17, 2011 at 15:11

Hi,

your first syntax relies on the order of evaluation of the operands in the expression: this order seems logical when you read it, but cannot be relied upon (the C rules do not specify an order of evaluation for this kind of expression).

Regards,

Luca (Cosmic)