minor changes to avoid compiling warnings

#120
Fix casting from double to uin16_t in datatypes compactFloat function.
Should solve compiler warning mentioned in #120