mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
revert change of integer => Integer in panic messages
This commit is contained in:
parent
4fe4041dc0
commit
2a762f1379
2 changed files with 5 additions and 5 deletions
|
@ -234,7 +234,7 @@ pub fn exportDivCeil(comptime T: type, comptime name: []const u8) void {
|
|||
comptime var f = struct {
|
||||
fn func(a: T, b: T) callconv(.C) T {
|
||||
return math.divCeil(T, a, b) catch {
|
||||
roc_panic("Integer division by 0!", 0);
|
||||
roc_panic("integer division by 0!", 0);
|
||||
unreachable;
|
||||
};
|
||||
}
|
||||
|
@ -382,7 +382,7 @@ pub fn exportAddOrPanic(comptime T: type, comptime name: []const u8) void {
|
|||
fn func(self: T, other: T) callconv(.C) T {
|
||||
const result = addWithOverflow(T, self, other);
|
||||
if (result.has_overflowed) {
|
||||
roc_panic("Integer addition overflowed!", 0);
|
||||
roc_panic("integer addition overflowed!", 0);
|
||||
unreachable;
|
||||
} else {
|
||||
return result.value;
|
||||
|
@ -440,7 +440,7 @@ pub fn exportSubOrPanic(comptime T: type, comptime name: []const u8) void {
|
|||
fn func(self: T, other: T) callconv(.C) T {
|
||||
const result = subWithOverflow(T, self, other);
|
||||
if (result.has_overflowed) {
|
||||
roc_panic("Integer subtraction overflowed!", 0);
|
||||
roc_panic("integer subtraction overflowed!", 0);
|
||||
unreachable;
|
||||
} else {
|
||||
return result.value;
|
||||
|
@ -625,7 +625,7 @@ pub fn exportMulOrPanic(comptime T: type, comptime W: type, comptime name: []con
|
|||
fn func(self: T, other: T) callconv(.C) T {
|
||||
const result = @call(.always_inline, mulWithOverflow, .{ T, W, self, other });
|
||||
if (result.has_overflowed) {
|
||||
roc_panic("Integer multiplication overflowed!", 0);
|
||||
roc_panic("integer multiplication overflowed!", 0);
|
||||
unreachable;
|
||||
} else {
|
||||
return result.value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue