-
Vladimir Sementsov-Ogievskiy authored
Calculation of sum may theoretically overflow, so use 64bit type and add some good assertions. Use int64_t constantly. Signed-off-by:
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201211183934.169161-4-vsementsov@virtuozzo.com>
Reviewed-by:
Eric Blake <eblake@redhat.com>
[eblake: tweak assertion order]
Signed-off-by:
Eric Blake <eblake@redhat.com>Vladimir Sementsov-Ogievskiy authoredCalculation of sum may theoretically overflow, so use 64bit type and add some good assertions. Use int64_t constantly. Signed-off-by:
Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201211183934.169161-4-vsementsov@virtuozzo.com>
Reviewed-by:
Eric Blake <eblake@redhat.com>
[eblake: tweak assertion order]
Signed-off-by:
Eric Blake <eblake@redhat.com>
Loading