Skip to content

Commit 8481527

Browse files
committed
change Array::elements return type to usize
1 parent aa68391 commit 8481527

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
@@ -233,12 +233,12 @@ impl Array {
233233
}
234234

235235
/// Returns the number of elements in the Array
236-
pub fn elements(&self) -> i64 {
236+
pub fn elements(&self) -> usize {
237237
unsafe {
238238
let mut ret_val: i64 = 0;
239239
let err_val = af_get_elements(&mut ret_val as MutAfArray, self.handle as AfArray);
240240
HANDLE_ERROR(AfError::from(err_val));
241-
ret_val
241+
ret_val as usize
242242
}
243243
}
244244

0 commit comments

Comments
 (0)