integer promotion caused a call to the non-reentrant function __modsint in the interrupt