Index: test/cctest/test-compiler.cc |
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc |
index 08037b3779f260d466ccbaad19b815f16ea9fb51..7f5e21c5ad305b323116a9ace0b56fd6015523bd 100644 |
--- a/test/cctest/test-compiler.cc |
+++ b/test/cctest/test-compiler.cc |
@@ -26,6 +26,7 @@ |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
#include <stdlib.h> |
+#include <wchar.h> // wint_t |
#include "v8.h" |
@@ -73,7 +74,7 @@ v8::Handle<v8::Value> PrintExtension::Print(const v8::Arguments& args) { |
uint16_t* string = NewArray<uint16_t>(length + 1); |
string_obj->Write(string); |
for (int j = 0; j < length; j++) |
- printf("%lc", string[j]); |
+ printf("%lc", static_cast<wint_t>(string[j])); |
DeleteArray(string); |
} |
printf("\n"); |