[trunk] Fix some simple warnings reported by -Wconversion
This commit is contained in:
parent
72bb159a7e
commit
34df9f3dbf
|
@ -42,7 +42,7 @@ Write a bit
|
||||||
@param bio BIO handle
|
@param bio BIO handle
|
||||||
@param b Bit to write (0 or 1)
|
@param b Bit to write (0 or 1)
|
||||||
*/
|
*/
|
||||||
static void bio_putbit(opj_bio_t *bio, int b);
|
static void bio_putbit(opj_bio_t *bio, unsigned int b);
|
||||||
/**
|
/**
|
||||||
Read a bit
|
Read a bit
|
||||||
@param bio BIO handle
|
@param bio BIO handle
|
||||||
|
@ -78,7 +78,7 @@ static int bio_byteout(opj_bio_t *bio) {
|
||||||
if (bio->bp >= bio->end) {
|
if (bio->bp >= bio->end) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
*bio->bp++ = bio->buf >> 8;
|
*bio->bp++ = (unsigned char)(bio->buf >> 8);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ static int bio_bytein(opj_bio_t *bio) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void bio_putbit(opj_bio_t *bio, int b) {
|
static void bio_putbit(opj_bio_t *bio, unsigned int b) {
|
||||||
if (bio->ct == 0) {
|
if (bio->ct == 0) {
|
||||||
bio_byteout(bio);
|
bio_byteout(bio);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue