mysterious C compiler bug!

Thread Starter

takao21203

Joined Apr 28, 2012
3,702
Hello I found a weird compiler bug.

A file register was dumped with remains from the byte to int automaticconversion.

I needed to add typecasts.

This caused a weird overwrite! I really checked all the wires, but found no error.
 

Attachments

Thread Starter

takao21203

Joined Apr 28, 2012
3,702
I had the opinion the code works, but registers are trashed. Using the typecasts, I can use these other regular variables now.

Because I visualized variables in binary on the LED matrix...I saw the behaviour. This is an idea I had, using the PCBs functionality.
 
Top