Closed Cesar-S closed 4 years ago
Hello and thank you for pointing to the problem with a bug issue. I understand the reason behind the confusion but I see no way to fix it. To be more precise: effort amount to fix it does not match the potential gain.
atoi
is the standard C++ function and it operates on int
type by default. int
is two bytes on AVR and four bytes on simulation and 32-bit Cortex-M microcontrollers. In the case reported, it’s up to the author to choose a function other than atoi
to guarantee the same behavior across all platforms. Hope this makes sense.
For now, I’m closing the issue. Feel free to re-open if new circumstances appear.
I understand, as long as it is not something that affects the simulation in general it makes no sense to devote more effort.
Maybe it's a problem, now I have an alternative solution but I leave the restlessness.
https://forum.xod.io/t/different-result-simulation-vs-debug/3384