[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/+/2233986 Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Commit-Queue: Zhi An Ng <zhin@chromium.org> Cr-Commit-Position: refs/heads/master@{#68345}
This commit is contained in:
parent
074fb79333
commit
ab4a69a834
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user