mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-12 21:28:47 +00:00
Remove a warning compiling under Windows
On Windows long is always 32 bit so under x64 the cast from pointer to "unsigned long" cause a warning. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
bbd8f9a5e2
commit
d0139f824e
@ -1073,7 +1073,7 @@ static int init_encoder(Encoder *encoder, QuicUsrContext *usr)
|
||||
|
||||
static int encoder_reste(Encoder *encoder, uint32_t *io_ptr, uint32_t *io_ptr_end)
|
||||
{
|
||||
spice_assert(((unsigned long)io_ptr % 4) == ((unsigned long)io_ptr_end % 4));
|
||||
spice_assert(((uintptr_t)io_ptr % 4) == ((uintptr_t)io_ptr_end % 4));
|
||||
spice_assert(io_ptr <= io_ptr_end);
|
||||
|
||||
encoder->rgb_state.waitcnt = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user