fix warnings about uint64_t -> uint32_t conversion

Change-Id: Iee027979b404d4b7edda506b844d354aa1026dae
This commit is contained in:
Pascal Massimino
2015-09-25 17:36:11 +02:00
parent 76a7dc39e5
commit 56668c9fc5
3 changed files with 4 additions and 3 deletions

View File

@ -22,7 +22,8 @@ extern "C" {
#define WEBP_RESCALER_RFIX 32 // fixed-point precision for multiplies
#define WEBP_RESCALER_ONE (1ull << WEBP_RESCALER_RFIX)
#define WEBP_RESCALER_FRAC(x, y) (((uint64_t)(x) << WEBP_RESCALER_RFIX) / (y))
#define WEBP_RESCALER_FRAC(x, y) \
((uint32_t)(((uint64_t)(x) << WEBP_RESCALER_RFIX) / (y)))
// Structure used for on-the-fly rescaling
typedef uint32_t rescaler_t; // type for side-buffer