Fix possible truncation of intermediate results
Fix possible truncation of intermediate results

Avoid truncation by returning uint256 instead of uint8 in functions lnUpperBound and floorLog2.
enjin/contracts