Skip to content

Commit f8196e6

Browse files
author
The Dlang Bot
authored
Merge pull request #7184 from WalterBright/bigintError
bigint.d: replace Error with assert() merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2 parents 897ff6e + b1638b1 commit f8196e6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

std/bigint.d

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,7 @@ private:
13021302
// Generate a runtime error if division by zero occurs
13031303
void checkDivByZero() pure const nothrow @safe
13041304
{
1305-
if (isZero())
1306-
throw new Error("BigInt division by zero");
1305+
assert(!isZero(), "BigInt division by zero");
13071306
}
13081307
}
13091308

0 commit comments

Comments
 (0)