Skip to content

Commit 403b83b

Browse files
committed
One last fix
1 parent 23f3197 commit 403b83b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/uri/php_uriparser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static inline size_t get_text_range_length(const UriTextRangeA *range)
2828
return range->afterLast - range->first;
2929
}
3030

31-
ZEND_ATTRIBUTE_NONNULL static void uriparser_copy_uri(UriUriA *new_uriparser_uri, UriUriA *uriparser_uri)
31+
ZEND_ATTRIBUTE_NONNULL static void uriparser_copy_uri(UriUriA *new_uriparser_uri, const UriUriA *uriparser_uri)
3232
{
3333
int result = uriCopyUriA(new_uriparser_uri, uriparser_uri);
3434
ZEND_ASSERT(result == URI_SUCCESS);
@@ -157,7 +157,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_host(const uri_internal
157157

158158
ZEND_ATTRIBUTE_NONNULL static size_t str_to_int(const char *str, size_t len)
159159
{
160-
int result = 0;
160+
size_t result = 0;
161161

162162
for (size_t i = 0; i < len; ++i) {
163163
result = result * 10 + (str[i] - '0');

0 commit comments

Comments
 (0)