battery/default_charging: Fix integer overflow

Signed-off-by: Michael Buesch <m@bues.ch>