summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--engines/afalg/e_afalg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c
index 2e7ce3455a..456ffda9aa 100644
--- a/engines/afalg/e_afalg.c
+++ b/engines/afalg/e_afalg.c
@@ -230,7 +230,7 @@ int afalg_fin_cipher_aio(afalg_aio *aio, int sfd, unsigned char *buf,
memset(cb, '\0', sizeof(*cb));
cb->aio_fildes = sfd;
cb->aio_lio_opcode = IOCB_CMD_PREAD;
- cb->aio_buf = (uint64_t)buf;
+ cb->aio_buf = (uint64_t)(unsigned long)buf;
cb->aio_offset = 0;
cb->aio_data = 0;
cb->aio_nbytes = len;