When calculating allowance, don't blindly cast from double to uint as it might not...