Otherwise, these can overflow at the boundaries of the integer type. Signed-off-by: Brad Smith <brad@comstyle.com>