http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57489
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> --- Did you try adding parentheses around c - '0'? Seems to me that you overflow otherwise.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57489
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> --- Did you try adding parentheses around c - '0'? Seems to me that you overflow otherwise.