builtins: Move return pointer to first position for fromUtf8C

This commit is contained in:
Brian Carroll 2022-07-04 11:02:19 +01:00
parent a342f02824
commit 60d29c2e25
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
3 changed files with 12 additions and 21 deletions

View file

@ -1552,7 +1552,7 @@ const CountAndStart = extern struct {
start: usize,
};
pub fn fromUtf8C(arg: RocList, update_mode: UpdateMode, output: *FromUtf8Result) callconv(.C) void {
pub fn fromUtf8C(output: *FromUtf8Result, arg: RocList, update_mode: UpdateMode) callconv(.C) void {
output.* = fromUtf8(arg, update_mode);
}