:bug: numpy bool casts to numpy int32 which overflows.
:bug: numpy bool casts to numpy int32 which overflows.

Force a standard python int which auto-widens when shifted.

--BRJ and CAR

BBN-Q/QGL,BBN-Q/QGL