Skip to content

Commit 3a4f23a

Browse files
author
Jason Ramapuram
committed
fix in preparation for rust 1.3
1 parent 381453c commit 3a4f23a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/data/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ macro_rules! cnst {
121121
fn generate(&self, dims: Dim4) -> Array {
122122
unsafe {
123123
let mut temp: i64 = 0;
124-
af_constant(&mut temp as MutAfArray, *self as c_double,
124+
af_constant(&mut temp as MutAfArray, *self as u64 as c_double,
125125
dims.ndims() as c_uint, dims.get().as_ptr() as *const DimT,
126126
$ffi_type);
127127
Array::from(temp)

0 commit comments

Comments
 (0)