Fix narrowing warning

This commit is contained in:
Niels Dossche 2024-07-06 23:19:49 +02:00
parent f16590637c
commit c6d0181c75

View file

@ -295,7 +295,6 @@ static xmlDocPtr php_xsl_apply_stylesheet(zval *id, xsl_object *intern, xsltStyl
zend_string *member; zend_string *member;
FILE *f; FILE *f;
int secPrefsError = 0; int secPrefsError = 0;
int secPrefsValue;
xsltSecurityPrefsPtr secPrefs = NULL; xsltSecurityPrefsPtr secPrefs = NULL;
node = php_libxml_import_node(docp); node = php_libxml_import_node(docp);
@ -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); ZEND_ASSERT(Z_TYPE_P(max_template_vars) == IS_LONG);
ctxt->maxTemplateVars = Z_LVAL_P(max_template_vars); 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 securityPrefs is set to NONE, we don't have to do any checks, but otherwise... */
if (secPrefsValue != XSL_SECPREF_NONE) { if (secPrefsValue != XSL_SECPREF_NONE) {