Skip to content

Commit bacd40f

Browse files
committed
uri: Make #defines in uri_parser_whatwg proper typed constants
1 parent 7d15b13 commit bacd40f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/uri/uri_parser_whatwg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
ZEND_TLS lxb_url_parser_t lexbor_parser;
2828
ZEND_TLS unsigned short int lexbor_urls;
2929

30-
#define LEXBOR_MAX_URL_COUNT 500
31-
#define LEXBOR_MRAW_BYTE_SIZE 8192
30+
static const unsigned short int LEXBOR_MAX_URL_COUNT = 500;
31+
static const size_t LEXBOR_MRAW_BYTE_SIZE = 8192;
3232

3333
static zend_always_inline void zval_string_or_null_to_lexbor_str(zval *value, lexbor_str_t *lexbor_str)
3434
{

0 commit comments

Comments
 (0)