xbzrle: fix compilation on ppc32
authorAlexander Graf <agraf@suse.de>
Tue, 14 Aug 2012 10:53:18 +0000 (12:53 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 15 Aug 2012 17:43:15 +0000 (19:43 +0200)
commita5b71725c7067f6805eb30ff8e03dce3b6bf7a53
tree45fcc7a8dba04e29c49c20df95d813d5a8995279
parentf28359d8e8fc64192450a72164b89d06cc3f781d
xbzrle: fix compilation on ppc32

When compiling the xbzrle code on my ppc32 user space, I hit the following
gcc compiler warning (treated as an error):

  cc1: warnings being treated as errors
  savevm.c: In function ‘xbzrle_encode_buffer’:
  savevm.c:2476: error: overflow in implicit constant conversion

Fix this by making the cast explicit, rather than implicit.

Signed-off-by: Alexander Graf <agraf@suse.de>
savevm.c