Skip to content

Commit 5d731d7

Browse files
author
Jason Ramapuram
committed
resolve type to be a generic type for the host function
1 parent cc56721 commit 5d731d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl Array {
153153
self.handle
154154
}
155155

156-
pub fn host(&self, data:&mut [f64]) -> Result<(), AfError> {
156+
pub fn host<T>(&self, data: &mut [T]) -> Result<(), AfError> {
157157
unsafe {
158158
let ret_val = af_get_data_ptr(data.as_mut_ptr() as *mut c_void, self.handle as AfArray);
159159
match ret_val {

0 commit comments

Comments
 (0)