Skip to content

Commit

Permalink
Update src/workerd/api/url.c++
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas Paun <[email protected]>
  • Loading branch information
anonrig and npaun authored Sep 10, 2024
1 parent cf73291 commit f026a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/workerd/api/url.c++
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool isSpecialScheme(kj::StringPtr scheme) noexcept {
if (scheme.size() == 0) {
return false;
}
int hash_value = (2 * scheme.size() + (unsigned)(scheme[0])) & 7;
int hash_value = (2 * scheme.size() + static_cast<unsigned>(scheme[0])) & 7;
const auto target = is_special_list[hash_value];
return (target[0] == scheme[0]) && (target.slice(1) == scheme.slice(1));
}
Expand Down

0 comments on commit f026a98

Please sign in to comment.