Commit 5743ed94 authored by Christoph Groth's avatar Christoph Groth
Browse files

tiny optimization

parent f6d8a20e
...@@ -365,9 +365,9 @@ PyObject *(*readin_scalar_into_new_dtable[])(PyObject*, bool, int) = ...@@ -365,9 +365,9 @@ PyObject *(*readin_scalar_into_new_dtable[])(PyObject*, bool, int) =
int examine_buffer(PyObject *in, Py_buffer *view, Dtype *dtype) int examine_buffer(PyObject *in, Py_buffer *view, Dtype *dtype)
{ {
if (!PyObject_CheckBuffer(in)) return -1;
Dtype dt = NONE; Dtype dt = NONE;
memset(view, 0, sizeof(Py_buffer)); memset(view, 0, sizeof(Py_buffer));
if (!PyObject_CheckBuffer(in)) return -1;
// I don't know if the following makes much sense: I try to get the buffer // I don't know if the following makes much sense: I try to get the buffer
// using less and less demanding flags. NumPy does the same. // using less and less demanding flags. NumPy does the same.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment