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...



Can you please post a copy of your sketch, please use code tags.. See section 7,148850.0.html

Tom..... :)

Hi Tom,

i found my error myself.

On Ver. 1.0 the code:

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


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] = Menue_S[0]++;

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


Regards, Ray L.

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


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.