Revision: 6402
Author: [email protected]
Date: Wed Jan 19 06:51:01 2011
Log: Fix Linux x64 compilation
http://code.google.com/p/v8/source/detail?r=6402
Modified:
/branches/bleeding_edge/src/utils.cc
=======================================
--- /branches/bleeding_edge/src/utils.cc Wed Jan 19 06:28:15 2011
+++ /branches/bleeding_edge/src/utils.cc Wed Jan 19 06:51:01 2011
@@ -332,7 +332,7 @@
// Report the error and abort if appropriate:
if (abort_if_failed) {
- intptr_t char_no = (p - start_of_line) - 1;
+ int char_no = static_cast<int>(p - start_of_line) - 1;
ASSERT(filename_ != NULL);
PrintF("\n\n\n"
@@ -348,7 +348,7 @@
err_context = data_;
}
// Compute the length of the error context and print it.
- intptr_t err_context_length = p - err_context;
+ int err_context_length = static_cast<int>(p - err_context);
if (err_context_length != 0) {
PrintF(" after \"%.*s\"", err_context_length, err_context);
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev