sim: sh: fix switch-bool warnings
authorMike Frysinger <vapier@gentoo.org>
Fri, 12 Nov 2021 00:36:28 +0000 (19:36 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 13 Nov 2021 05:57:00 +0000 (00:57 -0500)
commit35f7d33dd99346dd368fd7bdbc251001130b86cf
tree1fd091aa8d28334583e6d67f1dc36988bccb4be1
parentdc5a4621600e650b89deb92c79eaacc73fcc767a
sim: sh: fix switch-bool warnings

This code triggers -Werror=switch-bool warnings with <=gcc-5 versions.
Rework it to use if statements instead as it also simplifies a bit.
sim/sh/interp.c