Skip to content

Commit

Permalink
change Array::elements return type to usize
Browse files Browse the repository at this point in the history
  • Loading branch information
9prady9 committed Jun 8, 2017
1 parent aa68391 commit 8481527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/array.rs
Expand Up @@ -233,12 +233,12 @@ impl Array {
}

/// Returns the number of elements in the Array
pub fn elements(&self) -> i64 {
pub fn elements(&self) -> usize {
unsafe {
let mut ret_val: i64 = 0;
let err_val = af_get_elements(&mut ret_val as MutAfArray, self.handle as AfArray);
HANDLE_ERROR(AfError::from(err_val));
ret_val
ret_val as usize
}
}

Expand Down

0 comments on commit 8481527

Please sign in to comment.