Thread overview
[Issue 7982] New: iota broken when start and end are unsigned and step is negative.
Apr 24, 2012
Brad Anderson
May 04, 2012
Brad Anderson
May 31, 2012
Brad Anderson
April 24, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7982

           Summary: iota broken when start and end are unsigned and step
                    is negative.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: eco@gnuk.net


--- Comment #0 from Brad Anderson <eco@gnuk.net> 2012-04-24 14:22:13 PDT ---
iota.length doesn't properly handle unsigned values when the end is < the start (as is the case when using a reverse iota).

I already know the problem, I just don't want to forget about it. I'll see about making a fix for it soon.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7982


Brad Anderson <eco@gnuk.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Brad Anderson <eco@gnuk.net> 2012-05-04 14:05:29 PDT ---
https://github.com/D-Programming-Language/phobos/pull/566

Better solutions welcome.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7982



--- Comment #2 from github-bugzilla@puremagic.com 2012-05-27 19:50:06 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/ebcba68f7bddbf66aa845bc956607aaa84994b82 fix Issue 7982 - unsigned reverse iota broken

iota.length needs to take into account unsigned values when the end is greater than the start.

https://github.com/D-Programming-Language/phobos/commit/613d10f1b29a7a1c4a5abf97982ca0c9d59df045 Merge pull request #566 from eco/unsigned-reverse-iota

fix Issue 7982 - unsigned reverse iota broken

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 31, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7982


Brad Anderson <eco@gnuk.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------