From 7dacb2dad64b543635a76528e73bf1d7ac803d17 Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Sun, 8 Sep 2024 10:17:07 +0000 Subject: [PATCH] examples: add cast for windows compatibility --- examples/heif_thumbnailer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/heif_thumbnailer.cc b/examples/heif_thumbnailer.cc index 0e53c4d434..1e23c77bb5 100644 --- a/examples/heif_thumbnailer.cc +++ b/examples/heif_thumbnailer.cc @@ -69,7 +69,7 @@ int main(int argc, char** argv) int size = 512; // default thumbnail size bool thumbnail_from_primary_image_only = false; - while ((opt = getopt(argc, argv, "s:hpv")) != -1) { + while ((opt = getopt(argc, argv, (char*)"s:hpv")) != -1) { switch (opt) { case 's': size = atoi(optarg);