mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 15:32:53 +01:00
Merge "PutLE{16,24}: quiet implicit conversion warnings"
This commit is contained in:
commit
17ed143879
@ -92,14 +92,14 @@ static WEBP_INLINE uint32_t GetLE32(const uint8_t* const data) {
|
|||||||
// Store 16, 24 or 32 bits in little-endian order.
|
// Store 16, 24 or 32 bits in little-endian order.
|
||||||
static WEBP_INLINE void PutLE16(uint8_t* const data, int val) {
|
static WEBP_INLINE void PutLE16(uint8_t* const data, int val) {
|
||||||
assert(val < (1 << 16));
|
assert(val < (1 << 16));
|
||||||
data[0] = (val >> 0);
|
data[0] = (val >> 0) & 0xff;
|
||||||
data[1] = (val >> 8);
|
data[1] = (val >> 8) & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
static WEBP_INLINE void PutLE24(uint8_t* const data, int val) {
|
static WEBP_INLINE void PutLE24(uint8_t* const data, int val) {
|
||||||
assert(val < (1 << 24));
|
assert(val < (1 << 24));
|
||||||
PutLE16(data, val & 0xffff);
|
PutLE16(data, val & 0xffff);
|
||||||
data[2] = (val >> 16);
|
data[2] = (val >> 16) & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
static WEBP_INLINE void PutLE32(uint8_t* const data, uint32_t val) {
|
static WEBP_INLINE void PutLE32(uint8_t* const data, uint32_t val) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user