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

Unified Diff: content/child/font_warmup_win.cc

Issue 2535723006: Fix font use of base/numerics (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/font_warmup_win.cc
diff --git a/content/child/font_warmup_win.cc b/content/child/font_warmup_win.cc
index 2d3f2323d6cf54d0e64dda6b2105384ae0f9a0b4..739246ba781547d702775424b1152ffb3d02768c 100644
--- a/content/child/font_warmup_win.cc
+++ b/content/child/font_warmup_win.cc
@@ -150,7 +150,8 @@ class FakeGdiObjectFactory {
base::AutoLock scoped_lock(objects_lock_);
curr_handle_++;
// We don't support wrapping the fake handle value.
- void* handle = reinterpret_cast<void*>(curr_handle_.ValueOrDie());
+ void* handle = reinterpret_cast<void*>(
+ static_cast<uintptr_t>(curr_handle_.ValueOrDie()));
scoped_refptr<FakeGdiObject> object(new FakeGdiObject(magic, handle));
objects_[handle] = object;
return object;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698