sim: sh: avoid left shifting negative values
authorMike Frysinger <vapier@gentoo.org>
Sun, 7 Jan 2024 05:23:41 +0000 (00:23 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Jan 2024 01:02:29 +0000 (20:02 -0500)
commit4223df94e038c653eab6cb39928184c3fcb2575f
tree62287fbf87ccdc11383b4d210521179f8f2dd2cd
parentb0c687b2ca6e5910b0494c80d01d6b48ff6f0c51
sim: sh: avoid left shifting negative values

We just want to create a bitmask here, so cast the mask to unsigned
to avoid left shifting a negative value which is undefined behavior.
sim/sh/gencode.c