Skip to content

Commit 689f3b8

Browse files
committed
BUGFIX: fix ffi call arguments for strided array creation
1 parent 34c81b7 commit 689f3b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/array.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extern {
8686

8787
fn af_create_strided_array(arr: MutAfArray, data: *const c_void, offset: DimT,
8888
ndims: c_uint, dims: *const DimT, strides: *const DimT,
89-
aftype: uint8_t) -> c_int;
89+
aftype: uint8_t, stype: uint8_t) -> c_int;
9090

9191
fn af_get_strides(s0: *mut DimT, s1: *mut DimT, s2: *mut DimT, s3: *mut DimT,
9292
arr: AfArray) -> c_int;
@@ -168,7 +168,7 @@ impl Array {
168168
dims.ndims() as c_uint,
169169
dims.get().as_ptr() as * const c_longlong,
170170
strides.get().as_ptr() as * const c_longlong,
171-
aftype as uint8_t);
171+
aftype as uint8_t, 1);
172172
HANDLE_ERROR(AfError::from(err_val));
173173
Array::from(temp)
174174
}

0 commit comments

Comments
 (0)