Commit ab4a69a8 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[clang-tidy] Prefer static_cast to c style casts

See
https://clang.llvm.org/extra/clang-tidy/checks/google-readability-casting.html
and https://google.github.io/styleguide/cppguide.html#Casting.
Bug: v8:10488

Change-Id: Ia5ac4216066dc591e0492a6c0c66305faa94aa81
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2233986Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68345}
parent 074fb793
......@@ -49,7 +49,7 @@ bool operator==(ConstFieldInfo const& lhs, ConstFieldInfo const& rhs) {
}
size_t hash_value(ConstFieldInfo const& const_field_info) {
return (size_t)const_field_info.owner_map.address();
return static_cast<size_t>(const_field_info.owner_map.address());
}
bool operator==(FieldAccess const& lhs, FieldAccess const& rhs) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment