Skip to content

Commit

Permalink
examples: add cast for windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh committed Sep 8, 2024
1 parent 6b47b0a commit 7dacb2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/heif_thumbnailer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7dacb2d

Please sign in to comment.