Skip to content

Commit c6d0181

Browse files
committed
Fix narrowing warning
1 parent f165906 commit c6d0181

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/xsl/xsltprocessor.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
295295
zend_string *member;
296296
FILE *f;
297297
int secPrefsError = 0;
298-
int secPrefsValue;
299298
xsltSecurityPrefsPtr secPrefs = NULL;
300299

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

365-
secPrefsValue = intern->securityPrefs;
364+
zend_long secPrefsValue = intern->securityPrefs;
366365

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

0 commit comments

Comments
 (0)