Revision: 9981 Author: [email protected] Date: Fri Nov 11 09:48:40 2011 Log: Fixing build errors.
Review URL: http://codereview.chromium.org/8540007 http://code.google.com/p/v8/source/detail?r=9981 Modified: /branches/bleeding_edge/src/runtime.cc ======================================= --- /branches/bleeding_edge/src/runtime.cc Fri Nov 11 09:21:16 2011 +++ /branches/bleeding_edge/src/runtime.cc Fri Nov 11 09:48:40 2011 @@ -6970,8 +6970,12 @@ // Find total length of join result. int string_length = 0; bool is_ascii = separator->IsAsciiRepresentation(); - int max_string_length = is_ascii ? SeqAsciiString::kMaxLength - : SeqTwoByteString::kMaxLength; + int max_string_length; + if (is_ascii) { + max_string_length = SeqAsciiString::kMaxLength; + } else { + max_string_length = SeqTwoByteString::kMaxLength; + } bool overflow = false; CONVERT_NUMBER_CHECKED(int, elements_length, Int32, elements_array->length()); -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
