Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1014)

Unified Diff: test/cctest/test-fuzz-arm64.cc

Issue 1131573006: ARM64: Enable shorten-64-to-32 warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-code-stubs-arm64.cc ('k') | test/cctest/test-utils-arm64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-fuzz-arm64.cc
diff --git a/test/cctest/test-fuzz-arm64.cc b/test/cctest/test-fuzz-arm64.cc
index ada609fe78af5ce345177f48dd03489f2aa1715f..8f6651a6a9554e929e1d6b76ede48ca52a274e1d 100644
--- a/test/cctest/test-fuzz-arm64.cc
+++ b/test/cctest/test-fuzz-arm64.cc
@@ -43,7 +43,7 @@ TEST(FUZZ_decoder) {
Instruction buffer[kInstructionSize];
for (int i = 0; i < instruction_count; i++) {
- uint32_t instr = mrand48();
+ uint32_t instr = static_cast<uint32_t>(mrand48());
buffer->SetInstructionBits(instr);
decoder.Decode(buffer);
}
@@ -64,7 +64,7 @@ TEST(FUZZ_disasm) {
decoder.AppendVisitor(&disasm);
for (int i = 0; i < instruction_count; i++) {
- uint32_t instr = mrand48();
+ uint32_t instr = static_cast<uint32_t>(mrand48());
buffer->SetInstructionBits(instr);
decoder.Decode(buffer);
}
« no previous file with comments | « test/cctest/test-code-stubs-arm64.cc ('k') | test/cctest/test-utils-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698