Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PICASM / XC8 PIC C compiler bug

Status
Not open for further replies.
IMHO, from the ANSI C standpoint, the #if statement, which compares to 7 shoud work Ok. That is, the preprocessor should use intmax and thus evaluate macro as 7. However, when the macro is used later inside the C code, the compiler should use 16-bit arithmetic, so it should be replaced with 0.
Exactly.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top