Update panic tags of builtins

This commit is contained in:
Ayaz Hafiz 2022-11-22 17:20:17 -06:00
parent 32400e37e1
commit 4202352b19
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 7 additions and 6 deletions

View file

@ -233,7 +233,7 @@ pub const RocDec = extern struct {
const answer = RocDec.addWithOverflow(self, other);
if (answer.has_overflowed) {
roc_panic("Decimal addition overflowed!", 1);
roc_panic("Decimal addition overflowed!", 0);
unreachable;
} else {
return answer.value;
@ -265,7 +265,7 @@ pub const RocDec = extern struct {
const answer = RocDec.subWithOverflow(self, other);
if (answer.has_overflowed) {
roc_panic("Decimal subtraction overflowed!", 1);
roc_panic("Decimal subtraction overflowed!", 0);
unreachable;
} else {
return answer.value;
@ -329,7 +329,7 @@ pub const RocDec = extern struct {
const answer = RocDec.mulWithOverflow(self, other);
if (answer.has_overflowed) {
roc_panic("Decimal multiplication overflowed!", 1);
roc_panic("Decimal multiplication overflowed!", 0);
unreachable;
} else {
return answer.value;