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

Unified Diff: src/lookup.h

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Address comment 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
« no previous file with comments | « src/libsampler/sampler.h ('k') | src/lookup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>();
« no previous file with comments | « src/libsampler/sampler.h ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698