filter: explicit type conversion

This commit is contained in:
Ed Kellett 2019-10-06 19:41:06 +01:00
parent aecdd8237c
commit 0cbb1ba9f0
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -230,7 +230,7 @@ setfilter(const char *check, const char *data, const char **error)
if (state == FILTER_FILLING) { if (state == FILTER_FILLING) {
int dl; int dl;
unsigned char *d = rb_base64_decode(data, strlen(data), &dl); unsigned char *d = rb_base64_decode((unsigned char *)data, strlen(data), &dl);
if (!d) { if (!d) {
if (error) *error = "invalid data"; if (error) *error = "invalid data";
return -1; return -1;