Permalink
Browse files

Style Fix

  • Loading branch information...
1 parent 6966bdc commit 3d3102989eb760a711db3ade580a84541e5ee403 @ericfode ericfode committed Jul 15, 2012
Showing with 7 additions and 5 deletions.
  1. +7 −5 numpy/core/src/multiarray/common.c
@@ -37,13 +37,15 @@ _array_find_python_scalar_type(PyObject *op)
if ((PyLong_AsLongLong(op) == -1) && PyErr_Occurred()) {
PyErr_Clear();
if((PyLong_AsUnsignedLongLong(op) == -1) && PyErr_Occurred()){
- PyErr_Clear();
- } else {
- return PyArray_DescrFromType(NPY_ULONGLONG);
+ PyErr_Clear();
+ }
+ else {
+ return PyArray_DescrFromType(NPY_ULONGLONG);
}
return PyArray_DescrFromType(NPY_OBJECT);
- } else {
- return PyArray_DescrFromType(NPY_LONGLONG);
+ }
+ else {
+ return PyArray_DescrFromType(NPY_LONGLONG);
}
}
return NULL;

0 comments on commit 3d31029

Please sign in to comment.