Skip to content

Commit eeae987

Browse files
committed
Avoid narrowing
1 parent 1d57300 commit eeae987

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/dom/node.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,9 +2224,9 @@ static void dom_canonicalization(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{
22242224
RETVAL_FALSE;
22252225
} else {
22262226
if (mode == 0) {
2227-
ret = xmlOutputBufferGetSize(buf);
2228-
if (ret > 0) {
2229-
RETVAL_STRINGL((char *) xmlOutputBufferGetContent(buf), ret);
2227+
size_t size = xmlOutputBufferGetSize(buf);
2228+
if (size > 0) {
2229+
RETVAL_STRINGL((char *) xmlOutputBufferGetContent(buf), size);
22302230
} else {
22312231
RETVAL_EMPTY_STRING();
22322232
}

0 commit comments

Comments
 (0)