Commit 467c2062 authored by Tobias Tebbi's avatar Tobias Tebbi Committed by Commit Bot

[torque] fix MSVC compile

Change-Id: I4f610400eab6e24fb7eb06465ca9abc63d20fdb2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2182474Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67593}
parent 90fa771d
......@@ -616,7 +616,8 @@ std::vector<ObjectSlotKind> ClassType::ComputeHeaderSlotKinds() const {
std::vector<ObjectSlotKind> result;
std::vector<Field> header_fields = ComputeHeaderFields();
ComputeSlotKindsHelper(&result, 0, header_fields);
DCHECK_EQ(std::ceil(double{header_size()} / TargetArchitecture::TaggedSize()),
DCHECK_EQ(std::ceil(static_cast<double>(header_size()) /
TargetArchitecture::TaggedSize()),
result.size());
return result;
}
......
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