File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,6 @@ constexpr char kEOL = -1;
48
48
// Used in ToUSVString().
49
49
constexpr char16_t kUnicodeReplacementCharacter = 0xFFFD ;
50
50
51
- #define NS_IN6ADDRSZ 16
52
- #define NS_INT16SZ 2
53
-
54
51
// https://url.spec.whatwg.org/#concept-host
55
52
class URLHost {
56
53
public:
@@ -81,7 +78,7 @@ class URLHost {
81
78
union Value {
82
79
std::string domain_or_opaque;
83
80
uint32_t ipv4;
84
- uint16_t ipv6[NS_IN6ADDRSZ / NS_INT16SZ ];
81
+ uint16_t ipv6[8 ];
85
82
86
83
~Value () {}
87
84
Value () : ipv4 (0 ) {}
@@ -800,6 +797,8 @@ bool ToASCII(const std::string& input, std::string* output) {
800
797
}
801
798
#endif
802
799
800
+ #define NS_IN6ADDRSZ 16
801
+
803
802
void URLHost::ParseIPv6Host (const char * input, size_t length) {
804
803
CHECK_EQ (type_, HostType::H_FAILED);
805
804
You can’t perform that action at this time.
0 commit comments