| 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;
|
|
|