These changes have been tested on Juniper platforms using loader and ubldr.
Specifically, the return type mismatch was causing issues with network installs
on ARM platforms using TFTP. The connection would time out pre-maturely, due
to incorrect time calculations caused by the bit width mismatch. With the
changes (and some additional debug statements to monitor the calculations) and
extensive testing, the problem with pre-mature timeout was resolved.