Skip to content

Commit

Permalink
Change reinterpret_cast to static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
nkeynes committed Jul 17, 2024
1 parent 51173b4 commit ca5297d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ const char *PNG_COMMENT_START = "png-comment-";
const int PNG_COMMENT_START_LEN = strlen(PNG_COMMENT_START);

static void* readPNGComment(VipsImage *image, const char *field, GValue *value, void *p) {
MetadataComments *comments = reinterpret_cast<MetadataComments *>(p);
MetadataComments *comments = static_cast<MetadataComments *>(p);

if (vips_isprefix(PNG_COMMENT_START, field)) {
const char *keyword = strchr(field + PNG_COMMENT_START_LEN, '-');
Expand Down

0 comments on commit ca5297d

Please sign in to comment.