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

Unified Diff: src/runtime.cc

Issue 6083014: Fix win64 build (int conversion) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
===================================================================
--- src/runtime.cc (revision 6214)
+++ src/runtime.cc (working copy)
@@ -10417,7 +10417,7 @@
CONVERT_CHECKED(String, arg, args[0]);
SmartPointer<char> flags =
arg->ToCString(DISALLOW_NULLS, ROBUST_STRING_TRAVERSAL);
- FlagList::SetFlagsFromString(*flags, strlen(*flags));
+ FlagList::SetFlagsFromString(*flags, StrLength(*flags));
return Heap::undefined_value();
}
@@ -10432,7 +10432,7 @@
// Gets the current heap usage.
static MaybeObject* Runtime_GetHeapUsage(Arguments args) {
- int usage = Heap::SizeOfObjects();
+ int usage = static_cast<int>(Heap::SizeOfObjects());
if (!Smi::IsValid(usage)) {
return *Factory::NewNumberFromInt(usage);
}
« 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