Bug 13391 – BigInt division by ulong rejected

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2014-08-28T10:02:00Z
Last change time
2014-09-05T19:48:54Z
Assigned to
nobody
Creator
peter.alexander.au

Comments

Comment #0 by peter.alexander.au — 2014-08-28T10:02:04Z
dmd 2.066 import std.bigint; void main() { BigInt x = BigInt(1); x /= 1U; // OK x /= 1UL; // std/bigint.d(166): Error: static assert (true && false) is false } Issue 7973 is related. Don says this is was intentional due to some implementation issues, but should be solvable now. Expected: All integer operations should exist on BigInt for all integral types.
Comment #1 by github-bugzilla — 2014-09-05T19:48:53Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/5862d718116a63a3c8686649b7b45a9791636612 Fix Issue 13391 - Allow division of BigInt by long/ulong https://github.com/D-Programming-Language/phobos/commit/7e6d8d715fea7e227c867a881d529f77250d7026 Merge pull request #2477 from fb-pja/bug13391 Fix Issue 13391 - Allow division of BigInt by long/ulong