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

Unified Diff: src/lookup.h

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Fix one last unused variable error Created 3 years, 9 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
Index: src/lookup.h
diff --git a/src/lookup.h b/src/lookup.h
index e30173b97d7636f61cbd1a1ee3f98caae65e51ff..faa76e200f0986fb836d15472d38001d87d1f515 100644
--- a/src/lookup.h
+++ b/src/lookup.h
@@ -69,7 +69,7 @@ class V8_EXPORT_PRIVATE LookupIterator final BASE_EMBEDDED {
initial_holder_(holder),
// kMaxUInt32 isn't a valid index.
index_(kMaxUInt32),
- number_(DescriptorArray::kNotFound) {
+ number_(static_cast<uint32_t>(DescriptorArray::kNotFound)) {
#ifdef DEBUG
uint32_t index; // Assert that the name is not an array index.
DCHECK(!name->AsArrayIndex(&index));
@@ -92,7 +92,7 @@ class V8_EXPORT_PRIVATE LookupIterator final BASE_EMBEDDED {
receiver_(receiver),
initial_holder_(holder),
index_(index),
- number_(DescriptorArray::kNotFound) {
+ number_(static_cast<uint32_t>(DescriptorArray::kNotFound)) {
// kMaxUInt32 isn't a valid index.
DCHECK_NE(kMaxUInt32, index_);
Start<true>();
« src/compiler/gap-resolver.cc ('K') | « src/libsampler/sampler.h ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698