fix overflow issue
fix overflow issue

(1 << (1 + 6 + 6 + 6 + 6 + 6)) is signed -2147483648 and unsigned
2147483648. We want to check against the unsigned value, and since g is
signed we need to cast.

CID 1100656, 1100660

ihorlaitan/terminology,godfath3r/terminology,godfath3r/terminology,ihorlaitan/terminology,bssb/terminology,bssb/terminology,ihorlaitan/terminology,godfath3r/terminology,bssb/terminology