Issue 114: Incorrect loop in "runtime.cc"
http://code.google.com/p/v8/issues/detail?id=114

New issue report by notformail:
"runtime.cc", line 2159:

       int current_length = i + char_length + mapping->get(next, 0, chars);
       while (buffer->has_more()) {
         current = buffer->GetNext();
         int char_length = mapping->get(current, 0, chars);
         if (char_length == 0) char_length = 1;
         current += char_length;
       }
       length = current_length;

This code is silly, therefore probably wrong. I suspect that "current +=
..." ought to read "current_length += ...". I have not tried to see whether
my suggested change is correct.


Issue attributes:
        Status: New
        Owner: ----

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to