From e617a59969b6f0bad25e7b65beaa3dd7d7587beb Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 11 Jan 2016 19:28:26 +0100 Subject: [PATCH] server: Fix a pointer to uint64_t cast in spice_replay_next_cmd() This avoids a compilation error with -Werror on 32 bit systems as the pointer size differs from that of an uint64_t. Signed-off-by: Francois Gouget --- server/red-replay-qxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/red-replay-qxl.c b/server/red-replay-qxl.c index 66acf1e3..7a146b6c 100644 --- a/server/red-replay-qxl.c +++ b/server/red-replay-qxl.c @@ -1156,7 +1156,7 @@ SPICE_GNUC_VISIBLE QXLCommandExt* spice_replay_next_cmd(SpiceReplay *replay, case QXL_CMD_UPDATE: case QXL_CMD_SURFACE: info = (QXLReleaseInfo *)cmd->cmd.data; - info->id = (uint64_t)cmd; + info->id = (uint64_t)(uintptr_t)cmd; } replay->counter++;