mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-24 01:19:23 +00:00
Crash for scalar inputs fixed
This commit is contained in:
parent
f41e1125c6
commit
7e8ece8f3d
@ -215,8 +215,8 @@ struct vectorize_helper {
|
|||||||
strides[i - 1] = strides[i] * shape[i];
|
strides[i - 1] = strides[i] * shape[i];
|
||||||
size *= shape[i];
|
size *= shape[i];
|
||||||
}
|
}
|
||||||
|
size *= shape[0];
|
||||||
}
|
}
|
||||||
size *= shape[0];
|
|
||||||
|
|
||||||
if (size == 1)
|
if (size == 1)
|
||||||
return cast(f(*((Args *) buffers[Index].ptr)...));
|
return cast(f(*((Args *) buffers[Index].ptr)...));
|
||||||
|
Loading…
Reference in New Issue
Block a user