coverity#1242942 Use of untrusted scalar value

see can we make this somewhat more obvious to coverity

Change-Id: I2a3d9259f36c45b74391ecb5d96bf168959eb268