change representation of list/str

This commit is contained in:
Folkert 2020-11-21 22:45:22 +01:00
parent 52772df2c3
commit 8013af7e97
6 changed files with 45 additions and 65 deletions

View file

@ -118,7 +118,7 @@ const RocStr = struct {
// Str.split
pub fn strSplitInPlace(
bytes_array: [*]u128,
array: [*]RocStr,
array_len: usize,
str_bytes_ptrs: [*]u8,
str_len: usize,
@ -126,8 +126,6 @@ pub fn strSplitInPlace(
delimiter_len: usize
) callconv(.C) void {
var array = @ptrCast([*]RocStr, bytes_array);
var ret_array_index : usize = 0;
var sliceStart_index : usize = 0;