quic: Use i == 0 rather than !i

This helps to make quic_rgb_tmpl.c and quic_tmpl.c more consistent.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Christophe Fergeau 2017-07-04 14:55:10 +02:00
parent 8dd7374a1d
commit c39f2da17e
2 changed files with 5 additions and 5 deletions

View File

@ -237,7 +237,7 @@ static void FNAME(compress_row0_seg)(Encoder *encoder, int i,
spice_assert(end - i > 0);
if (!i) {
if (i == 0) {
unsigned int codeword, codewordlen;
COMPRESS_ONE_ROW0_0(r);
@ -349,7 +349,7 @@ static void FNAME(compress_row_seg)(Encoder *encoder, int i,
spice_assert(end - i > 0);
if (!i) {
if (i == 0) {
unsigned int codeword, codewordlen;
COMPRESS_ONE_0(r);
@ -492,7 +492,7 @@ static void FNAME(uncompress_row0_seg)(Encoder *encoder, int i,
spice_assert(end - i > 0);
if (!i) {
if (i == 0) {
unsigned int codewordlen;
UNCOMPRESS_PIX_START(&cur_row[i]);
@ -613,7 +613,7 @@ static void FNAME(uncompress_row_seg)(Encoder *encoder,
spice_assert(end - i > 0);
if (!i) {
if (i == 0) {
unsigned int codewordlen;
UNCOMPRESS_PIX_START(&cur_row[i]);

View File

@ -255,7 +255,7 @@ static void FNAME(compress_row_seg)(Encoder *encoder, Channel *channel, int i,
spice_assert(end - i > 0);
if (!i) {
if (i == 0) {
unsigned int codeword, codewordlen;
decorrelate_drow[0] = family.xlatU2L[(unsigned)((int)cur_row->a -