external/libodfgen: Avoid undefined-behavior casts...

...from (potentially negative) double to unsigned

Change-Id: I2f922beec7201a8d769133e879208d2e951e6429