Commit a2ea2cd0 authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[riscv64] Keep the type consistent in in_range

Change-Id: I23b76ec7bdf0f1997815f4928d903a9807413129
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3516829Reviewed-by: 's avatarji qiu <qiuji@iscas.ac.cn>
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#79451}
parent 7284aab7
......@@ -300,7 +300,7 @@ class FPURegister : public RegisterBase<FPURegister, kDoubleAfterLast> {
// this cl, in order to facilitate modification, it is assumed that the vector
// register and floating point register are shared.
VRegister toV() const {
DCHECK(base::IsInRange(code(), 0, kVRAfterLast - 1));
DCHECK(base::IsInRange(static_cast<int>(code()), 0, kVRAfterLast - 1));
return VRegister(code());
}
......
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