Reviewers: Søren Gjesse,

Description:
Fix Windows build.

Please review this at http://codereview.chromium.org/527031

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/ia32/codegen-ia32.cc


Index: src/ia32/codegen-ia32.cc
===================================================================
--- src/ia32/codegen-ia32.cc    (revision 3567)
+++ src/ia32/codegen-ia32.cc    (working copy)
@@ -2208,8 +2208,9 @@
         __ bind(&comparison);
         // Compare the first character of the string with out constant
         // 1-character string.
-        __ cmp(Operand(temp2.reg()),
-               Immediate(String::cast(*right_side.handle())->Get(0)));
+        uint8_t char_value =
+ static_cast<uint8_t>(String::cast(*right_side.handle())->Get(0));
+        __ cmp(Operand(temp2.reg()), Immediate(char_value));
         Label characters_were_different;
         __ j(not_equal, &characters_were_different);
// If the first character is the same then the long string sorts after


-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to