Skip to content

Commit

Permalink
Fix narrowing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Jul 6, 2024
1 parent f165906 commit c6d0181
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/xsl/xsltprocessor.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
zend_string *member;
FILE *f;
int secPrefsError = 0;
int secPrefsValue;
xsltSecurityPrefsPtr secPrefs = NULL;

node = php_libxml_import_node(docp);
Expand Down Expand Up @@ -362,7 +361,7 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
ZEND_ASSERT(Z_TYPE_P(max_template_vars) == IS_LONG);
ctxt->maxTemplateVars = Z_LVAL_P(max_template_vars);

secPrefsValue = intern->securityPrefs;
zend_long secPrefsValue = intern->securityPrefs;

/* if securityPrefs is set to NONE, we don't have to do any checks, but otherwise... */
if (secPrefsValue != XSL_SECPREF_NONE) {
Expand Down

0 comments on commit c6d0181

Please sign in to comment.