From 6b48868cf0754b13e4efaaaec33cf8c9deba2d40 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 25 Feb 2018 22:32:14 +0100 Subject: [PATCH] io: keep 64b arithmetic Widen to 64b arithmetic from start. --- lib/device/dev-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index 31506e882..50b1ba876 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -117,7 +117,7 @@ int dev_async_setup(struct cmd_context *cmd) int r; _aio_max = find_config_tree_int(cmd, devices_aio_max_CFG, NULL); - _aio_memory_max = find_config_tree_int(cmd, devices_aio_memory_CFG, NULL) * 1024 * 1024; + _aio_memory_max = find_config_tree_int(cmd, devices_aio_memory_CFG, NULL) * INT64_C(1024 * 1024); /* Threshold is zero? */ if (!_aio_max || !_aio_memory_max) {