[Issue 5293] std.math: Error: shift by -48 is outside the range 0..32

2010-12-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5293


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


[Issue 5293] std.math: Error: shift by -48 is outside the range 0..32

2010-12-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5293



--- Comment #3 from Iain Buclaw  2010-12-04 15:18:46 PST ---
Looks good, makes more sense to use >>, thanks!

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


[Issue 5293] std.math: Error: shift by -48 is outside the range 0..32

2010-12-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5293


Don  changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #2 from Don  2010-12-02 21:37:55 PST ---
I have posted a fix in svn 2206. Please confirm.

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


[Issue 5293] std.math: Error: shift by -48 is outside the range 0..32

2010-11-30 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5293


Iain Buclaw  changed:

   What|Removed |Added

 CC||ibuc...@ubuntu.com


--- Comment #1 from Iain Buclaw  2010-11-30 22:08:20 PST ---
Actually, now I've woken up a bit, I *think* what it should be is:

@@ -1345,7 +1345,7 @@
 // denormal
 value *= F.RECIP_EPSILON;
 ex = vu[F.EXPPOS_SHORT] & F.EXPMASK;
-exp = (ex - F.EXPBIAS)>>> 4 - real.mant_dig + 1;
+exp = ((ex - F.EXPBIAS)>>> 4) - real.mant_dig + 1;
 vu[F.EXPPOS_SHORT] =
 cast(ushort)((0x8000 & vu[F.EXPPOS_SHORT]) | 0x3FE0);
 }


Can someone confirm?

Regards

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