summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2017-08-03 22:31:39 +0100
committerFrediano Ziglio <fziglio@redhat.com>2017-08-09 07:07:34 +0100
commita6d6e8435a678838e60cf08a7b38e41bd5cf3272 (patch)
tree69022c65a5160d0d729318ecd36a1a09a32f5f1e /common
parent6a882282f12363fb3d81b8a8551cff53fe6ca47e (diff)
quic: use 32 bit for bppmask
In most occurrences bppmask is converted to 32 bit anyway. In the left one a possible more bigger precision is not needed. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'common')
-rw-r--r--common/quic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/quic.c b/common/quic.c
index a4c46d3..7c069e4 100644
--- a/common/quic.c
+++ b/common/quic.c
@@ -168,7 +168,7 @@ struct Encoder {
};
/* bppmask[i] contains i ones as lsb-s */
-static const unsigned long int bppmask[33] = {
+static const unsigned int bppmask[33] = {
0x00000000, /* [0] */
0x00000001, 0x00000003, 0x00000007, 0x0000000f,
0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff,
@@ -329,7 +329,7 @@ static void decorrelate_init(QuicFamily *family, int bpc)
static void correlate_init(QuicFamily *family, int bpc)
{
- const unsigned long int pixelbitmask = bppmask[bpc];
+ const unsigned int pixelbitmask = bppmask[bpc];
unsigned long int s;
//spice_assert(bpc <= 8);