Skip to content

Commit

Permalink
fix betterC cbor code
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Apr 19, 2024
1 parent 7c6e704 commit 6480217
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/mir/ser/cbor.d
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,12 @@ scope:
{
auto res = cast(long)num;
if (res != num)
throw bigIntConvException.toMutable;
{
version(D_Exceptions)
throw bigIntConvException.toMutable;
else
assert(0, "BigInt is too large for CBOR");
}
putValue(res);
}

Expand Down

0 comments on commit 6480217

Please sign in to comment.