mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
gif2webp: don't use C99 %zu
this would require a PRIuS or similar macro for proper platform compatibility (Visual Studio for instance would be variants of %lu) Change-Id: I2b9fcb1639db024775fb47dbcf79a2240f3d98f2
This commit is contained in:
parent
ad26df1a05
commit
3b9f9dd07b
@ -58,7 +58,7 @@ static void SanitizeKeyFrameIntervals(size_t* const kmin_ptr,
|
|||||||
kmin = kmax - 1;
|
kmin = kmax - 1;
|
||||||
if (print_warning) {
|
if (print_warning) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"WARNING: Setting kmin = %zu, so that kmin < kmax.\n", kmin);
|
"WARNING: Setting kmin = %d, so that kmin < kmax.\n", (int)kmin);
|
||||||
}
|
}
|
||||||
} else if (kmin < (kmax / 2 + 1)) {
|
} else if (kmin < (kmax / 2 + 1)) {
|
||||||
// This ensures that cache.keyframe + kmin >= kmax is always true. So, we
|
// This ensures that cache.keyframe + kmin >= kmax is always true. So, we
|
||||||
@ -66,8 +66,8 @@ static void SanitizeKeyFrameIntervals(size_t* const kmin_ptr,
|
|||||||
kmin = (kmax / 2 + 1);
|
kmin = (kmax / 2 + 1);
|
||||||
if (print_warning) {
|
if (print_warning) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"WARNING: Setting kmin = %zu, so that kmin >= kmax / 2 + 1.\n",
|
"WARNING: Setting kmin = %d, so that kmin >= kmax / 2 + 1.\n",
|
||||||
kmin);
|
(int)kmin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Limit the max number of frames that are allocated.
|
// Limit the max number of frames that are allocated.
|
||||||
@ -75,8 +75,8 @@ static void SanitizeKeyFrameIntervals(size_t* const kmin_ptr,
|
|||||||
kmin = kmax - MAX_CACHE_SIZE;
|
kmin = kmax - MAX_CACHE_SIZE;
|
||||||
if (print_warning) {
|
if (print_warning) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"WARNING: Setting kmin = %zu, so that kmax - kmin <= 30.\n",
|
"WARNING: Setting kmin = %d, so that kmax - kmin <= 30.\n",
|
||||||
kmin);
|
(int)kmin);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*kmin_ptr = kmin;
|
*kmin_ptr = kmin;
|
||||||
|
Loading…
Reference in New Issue
Block a user