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

Unified Diff: src/typing.h

Issue 924453002: Fix invalid use of int in Zone. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Windows again... Created 5 years, 10 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/lithium-allocator.cc ('k') | src/zone.h » ('j') | src/zone.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing.h
diff --git a/src/typing.h b/src/typing.h
index 0ca92f3a42343b8549964350ae5251f30bf17225..34649775fb8231d79b012ba00209d6ef88e6f789 100644
--- a/src/typing.h
+++ b/src/typing.h
@@ -23,9 +23,7 @@ class AstTyper: public AstVisitor {
public:
static void Run(CompilationInfo* info);
- void* operator new(size_t size, Zone* zone) {
- return zone->New(static_cast<int>(size));
- }
+ void* operator new(size_t size, Zone* zone) { return zone->New(size); }
void operator delete(void* pointer, Zone* zone) { }
void operator delete(void* pointer) { }
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/zone.h » ('j') | src/zone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698