Crash for scalar inputs fixed

This commit is contained in:
Johan Mabille 2016-02-11 18:42:22 +01:00 committed by jmabille
parent f41e1125c6
commit 7e8ece8f3d

View File

@ -215,8 +215,8 @@ struct vectorize_helper {
strides[i - 1] = strides[i] * shape[i];
size *= shape[i];
}
}
size *= shape[0];
}
if (size == 1)
return cast(f(*((Args *) buffers[Index].ptr)...));