[Spice-devel] [PATCH] server: Remove an unnecessary cast in spice_replay_next_cmd()
Frediano Ziglio
fziglio at redhat.com
Thu Feb 25 09:19:00 UTC 2016
>
> Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
Yes, be prepared for 128 bit cpus!
Frediano
> ---
>
> This is a small clean up of one of my older patches but will not change
> anything to how the code works. So it can safely be ignored if so
> desired.
>
> 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 17ee022..281bc7a 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 = QXLPHYSICAL_TO_PTR(cmd->cmd.data);
> - info->id = (uint64_t)(uintptr_t)cmd;
> + info->id = (uintptr_t)cmd;
> }
>
> replay->counter++;
> --
> 2.7.0
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
>
More information about the Spice-devel
mailing list