[Issue 3087] New: std.range.retro.opIndex out of range
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 22 23:51:06 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3087
Summary: std.range.retro.opIndex out of range
Product: D
Version: 2.030
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P4
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: samhu.samhu at gmail.com
CC: bugzilla at digitalmars.com
static if (isRandomAccessRange!(R) && hasLength!(R))
ref ElementType!(R) opIndex(uint n)
{
return _input[_input.length - n + 1];
}
Shouldn't it be _input.length-(n+1) ?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list