Trouble ORing two bytes into a 16-bit int with Cosmic Compiler
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2010-10-27 1:10 PM
Posted on October 27, 2010 at 22:10
Trouble ORing two bytes into a 16-bit int with Cosmic Compiler
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 6:11 AM
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)
