mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
use const
This commit is contained in:
parent
fa65d89a3c
commit
9307bdbed0
1 changed files with 1 additions and 1 deletions
|
@ -1250,7 +1250,7 @@ pub fn negateC(arg: RocDec) callconv(.C) i128 {
|
|||
}
|
||||
|
||||
pub fn absC(arg: RocDec) callconv(.C) i128 {
|
||||
var result = @call(.{ .modifier = always_inline }, RocDec.abs, .{arg}) catch @panic("TODO overflow for calling absolute value on RocDec");
|
||||
const result = @call(.{ .modifier = always_inline }, RocDec.abs, .{arg}) catch @panic("TODO overflow for calling absolute value on RocDec");
|
||||
return result.num;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue