IDE 1.6.1 increment/decrement not working

Since Ver 1.6.1 the functions increment and decrement not working. Must i replace any "++" and "--" in my project with "+1" and "-1" or is a patch available?

Sorry for my english...

roadrunner_no1

Hi,

Can you please post a copy of your sketch, please use code tags.. See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Tom..... :)

Hi Tom,

i found my error myself.

On Ver. 1.0 the code:

Menue_S[0] = Menue_S[0]++;

works.

On Ver. 1.6.1 this line is not working, the value of Menue_S[0] is not raising but the easy code:

Menue_S[0]++;

works.

roadRunner_no1

This:

Menue_S[0] = Menue_S[0]++;

is kind of a silly thing to write anyway, since it is functuionalliy identical to just:

Menue_S[0]++;

Regards, Ray L.

There is nothing wrong with the ++ or -- op's. What ever is wrong, it is something that you have done.

Mark

This statement was never guaranteed to do anything meaningful in the first place:

roadrunner_no1: Menue_S[0] = Menue_S[0]++;

That statement invokes undefined behavior, which means that it can do anything, including making demons fly out of your nose. If you don't want that to happen, don't use undefined statements.