Skip to content

Commit

Permalink
cast to signed to fix -Wpointer-sign
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Nov 14, 2017
1 parent b154455 commit 8be974e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/image.c
Expand Up @@ -183,7 +183,7 @@ PHP_METHOD(Image, convert)
size_t len = wkhtmltoimage_get_output(w->converter, &buff);

if (len) {
RETURN_STRINGL(buff, len);
RETURN_STRINGL((const char *)buff, len);
}
}
} /* }}} */
Expand Down
2 changes: 1 addition & 1 deletion src/pdf.c
Expand Up @@ -272,7 +272,7 @@ PHP_METHOD(PDF, convert)
size_t len = wkhtmltopdf_get_output(w->converter, &buff);

if (len) {
RETURN_STRINGL(buff, len);
RETURN_STRINGL((const char *)buff, len);
}
}
} /* }}} */
Expand Down

0 comments on commit 8be974e

Please sign in to comment.