[Issue 3037] Off-by-one error in Stride.length

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 27 22:31:31 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3037


Andrei Alexandrescu <andrei at metalanguage.com> changed:

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




--- Comment #1 from Andrei Alexandrescu <andrei at metalanguage.com>  2009-08-27 22:31:31 PDT ---
I fixed length like this:

return (_input.length - 1) / _n + 1;

Thanks!

-- 
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