[Issue 2921] std.random.uniform doesn't work with char.

2015-06-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2921

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|2.029   |D2

--


[Issue 2921] std.random.uniform doesn't work with char.

2009-05-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2921





--- Comment #1 from dsim...@yahoo.com  2009-05-03 14:41 ---
Created an attachment (id=346)
 -- (http://d.puremagic.com/issues/attachment.cgi?id=346action=view)
Make uniform work with chars.

It's just a problem of uniform trying to treat characters as if they were
floating point types because isIntegral!(char) is false.  Here's a patch that
just makes a new template isIntOrChar(T) and uses that instead.


-- 



[Issue 2921] std.random.uniform doesn't work with char.

2009-05-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2921


and...@metalanguage.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #2 from and...@metalanguage.com  2009-05-03 15:53 ---
Thanks, fixed in svn.


--