mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
properly return a value
on aarch64, returning a big value does not happen with a pointer passed as the first argument (x0). The pointer is passed in the return register (x8) instead. Just use a zig return to generate the right code in both cases
This commit is contained in:
parent
ea5632c437
commit
c749efb64c
1 changed files with 2 additions and 3 deletions
|
@ -1857,13 +1857,12 @@ const CountAndStart = extern struct {
|
||||||
};
|
};
|
||||||
|
|
||||||
pub fn fromUtf8RangeC(
|
pub fn fromUtf8RangeC(
|
||||||
output: *FromUtf8Result,
|
|
||||||
list: RocList,
|
list: RocList,
|
||||||
start: usize,
|
start: usize,
|
||||||
count: usize,
|
count: usize,
|
||||||
update_mode: UpdateMode,
|
update_mode: UpdateMode,
|
||||||
) callconv(.C) void {
|
) callconv(.C) FromUtf8Result {
|
||||||
output.* = @call(.{ .modifier = always_inline }, fromUtf8Range, .{ list, start, count, update_mode });
|
return fromUtf8Range(list, start, count, update_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fromUtf8Range(arg: RocList, start: usize, count: usize, update_mode: UpdateMode) FromUtf8Result {
|
pub fn fromUtf8Range(arg: RocList, start: usize, count: usize, update_mode: UpdateMode) FromUtf8Result {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue