checkers

Why do I get error C3201 here?

Discussion created by checkers on Nov 22, 2012
Latest reply on Nov 22, 2012 by CrasyCat

I added one line to a function and now I get an error C3201

 

Here is the code. I added the last line in this list

 

/* ************************************************************ */

void simulate_stick(unsigned char arrow_state) {

  setLedArrow5(arrow_state && 0x01);

  arrow_state = arrow_state / 2; // throws a C3201 error

  ...

/* ************************************************************ */

void simulate_stick(unsigned char arrow_state) {


Now, I am editing all code inside of the CodeWarrior IDE.

I don't have UNIX - this is a Windows 7 PC.

 

Where did that error come from?

What can I do to eliminate the error?

Outcomes