From e878c3fc32161048e76c2b8e6a33d84f6852cdd4 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 16 Apr 2018 12:57:02 +0200 Subject: [PATCH] cleanup: correct casting --- 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 1d16a660f..d631b8613 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -242,7 +242,7 @@ int dev_async_getevents(void) dev_name(devbuf->where.dev), _aio_events[event_nr].res, (uint64_t) devbuf->where.size, (uint64_t) devbuf->where.start, _reason_text(devbuf->reason), - ((int64_t)_aio_events[event_nr].res < 0) ? strerror(-(int64_t)_aio_events[event_nr].res) : 0); + (((int64_t)_aio_events[event_nr].res) < 0) ? strerror(-(int64_t)_aio_events[event_nr].res) : 0); _release_devbuf(devbuf); if (dev_read_callback_fn) dev_read_callback_fn(1, AIO_SUPPORTED_CODE_PATH, dev_read_callback_context, NULL);