Fix of a bad fix for #42.  In struct rep number of bits for thread
number is 32 and shift of 1 for 32 bits converted to int gives a zero
result.