Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

CPArray subArrayWithRange: errors

#123

subArrayWithRange: uses a bad calculation to determine if a CPRangeException should be thrown (using location + CPRangeMax when CPRangeMax is correct on its own), as well as using a variable that is not declared or defined anywhere (maxRange).

I've attached a patch.

Reported by Nick Takayama · October 25th, 2008 @ 08:20 PM

State: resolved
Milestone: 0.6
Assigned to: nobody

Activity

  1. Ross Boucher
    Ross Boucher
    • Milestone set to 0.6
    • State changed from new to resolved

    Patched here: 748d5b84bd92eb5eda7f3fc537ae0b56d5b31135

    October 25th, 2008 @ 08:59 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.