mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
When compiling as C++, avoid narrowing warnings.
The gcc compilation warning was: narrowing conversion from ‘int’ to ‘int8_t’ Change-Id: I4803dd60ad04060cdb5d61a1aa98b25215b9d4eb
This commit is contained in:
parent
49d0280df1
commit
c0648ac2ae
@ -63,7 +63,7 @@ static const uint8_t abs0[255 + 255 + 1] = {
|
|||||||
0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
|
0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int8_t sclip1[1020 + 1020 + 1] = {
|
static const uint8_t sclip1[1020 + 1020 + 1] = {
|
||||||
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
|
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
|
||||||
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
|
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
|
||||||
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
|
0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80,
|
||||||
@ -236,7 +236,7 @@ static const int8_t sclip1[1020 + 1020 + 1] = {
|
|||||||
0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f
|
0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int8_t sclip2[112 + 112 + 1] = {
|
static const uint8_t sclip2[112 + 112 + 1] = {
|
||||||
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
|
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
|
||||||
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
|
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
|
||||||
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
|
0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0,
|
||||||
@ -339,8 +339,8 @@ static volatile int tables_ok = 0;
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const int8_t* const VP8ksclip1 = &sclip1[1020];
|
const int8_t* const VP8ksclip1 = (const int8_t*)&sclip1[1020];
|
||||||
const int8_t* const VP8ksclip2 = &sclip2[112];
|
const int8_t* const VP8ksclip2 = (const int8_t*)&sclip2[112];
|
||||||
const uint8_t* const VP8kclip1 = &clip1[255];
|
const uint8_t* const VP8kclip1 = &clip1[255];
|
||||||
const uint8_t* const VP8kabs0 = &abs0[255];
|
const uint8_t* const VP8kabs0 = &abs0[255];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user