emote2ss

Animated webp to spritesheets converting tool
git clone git://bsandro.tech/emote2ss
Log | Files | Refs

commit 38df30c758affd6f976d59e29df0236659518f85
parent d6a310081623ba3bbbe496e136950920290a0684
Author: bsandro <email@bsandro.tech>
Date:   Thu, 13 Jul 2023 01:17:21 +0300

printf num sizing fix

Diffstat:
Msrc/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c @@ -177,7 +177,7 @@ void write_webp(const char *fname, AnimatedImage *img, int cols) { int stride = full_line; printf("stride: %d\n", stride); size_t encoded = WebPEncodeLosslessRGBA(merged_orig, img->width * cols, img->height * rows, stride, &out); - printf("size: %" PRIu32 ", encoded: %zu\n", img->width*img->height*sizeof(uint32_t), encoded); + printf("size: %zu, encoded: %zu\n", img->width*img->height*sizeof(uint32_t), encoded); assert(encoded!=0); size_t written = fwrite(out, sizeof(uint8_t), encoded, fp); assert(written==encoded);