Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bridiver committed Feb 28, 2025
1 parent 4910e56 commit 997c69d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion third_party/rust/url/v2/crate/parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ ParseResult ParseURL(rust::Str url_string) {
.has_query = url.has_query(),
.query = url.query(),
.has_port = url.has_port(),
// have a better check here
// maybe this should be a checked cast since the max port
// fits within uint16
.port = base::saturated_cast<uint16_t>(url.IntPort()),
.valid = url.is_valid()
};
Expand Down

0 comments on commit 997c69d

Please sign in to comment.