Commit 497723cf authored by Florian Sattler's avatar Florian Sattler Committed by Commit Bot

Fix type within dcheck for MSVC.

Bug: v8:8351
Change-Id: I6ea08e0eb8b77a578a6a4fbe3eb0b96e6c3a0f95
Reviewed-on: https://chromium-review.googlesource.com/c/1296451Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Florian Sattler <sattlerf@google.com>
Cr-Commit-Position: refs/heads/master@{#56892}
parent 5679e309
......@@ -88,7 +88,8 @@ class PointerWithPayload {
}
V8_INLINE void SetPayload(PayloadType new_payload) {
DCHECK_EQ(new_payload & kPayloadMask, new_payload);
DCHECK_EQ(static_cast<PayloadType>(new_payload & kPayloadMask),
new_payload);
pointer_ = (pointer_ & kPointerMask) | static_cast<uintptr_t>(new_payload);
DCHECK_EQ(GetPayload(), new_payload);
}
......
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