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

Unified Diff: test/cctest/test-compiler.cc

Issue 1940: Replaced calls to functions that msvc consider deprecated. Used... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 3 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 | « test/cctest/cctest.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-compiler.cc
===================================================================
--- test/cctest/test-compiler.cc (revision 280)
+++ test/cctest/test-compiler.cc (working copy)
@@ -77,10 +77,10 @@
static double Inc(int x) {
const char* source = "result = %d + 1;";
- char buffer[512];
- OS::SNPrintF(buffer, sizeof(buffer), source, x);
+ EmbeddedVector<char, 512> buffer;
+ OS::SNPrintF(buffer, source, x);
- Handle<JSFunction> fun = Compile(buffer);
+ Handle<JSFunction> fun = Compile(buffer.start());
if (fun.is_null()) return -1;
bool has_pending_exception;
« no previous file with comments | « test/cctest/cctest.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698