sim: bfin: avoid left shifting negative values
authorMike Frysinger <vapier@gentoo.org>
Sun, 7 Jan 2024 05:22:55 +0000 (00:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Jan 2024 01:01:45 +0000 (20:01 -0500)
commitb0c687b2ca6e5910b0494c80d01d6b48ff6f0c51
tree024c7255fdb017b42ab088bfa15719dd812b8226
parentb2ea48df925a6d41f63e88b26dbf3f17cde0f252
sim: bfin: 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/bfin/bfin-sim.c