Skip to content

Commit

Permalink
MAINT: remove unused goto label and useless casts
Browse files Browse the repository at this point in the history
  • Loading branch information
larsmans committed Aug 30, 2013
1 parent 0b062a8 commit b76cb5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion numpy/core/src/multiarray/array_assign_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ PyArray_AssignArray(PyArrayObject *dst, PyArrayObject *src,
}
}

finish:
if (copied_src) {
Py_DECREF(src);
}
Expand Down
6 changes: 3 additions & 3 deletions numpy/core/src/multiarray/multiarraymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3496,7 +3496,7 @@ PyDataMem_NEW(size_t size)
}
PyGILState_Release(gilstate);
}
return (char *)result;
return result;
}

/*NUMPY_API
Expand All @@ -3516,7 +3516,7 @@ PyDataMem_NEW_ZEROED(size_t size, size_t elsize)
}
PyGILState_Release(gilstate);
}
return (char *)result;
return result;
}

/*NUMPY_API
Expand Down Expand Up @@ -3553,7 +3553,7 @@ PyDataMem_RENEW(void *ptr, size_t size)
}
PyGILState_Release(gilstate);
}
return (char *)result;
return result;
}

static PyObject *
Expand Down

0 comments on commit b76cb5b

Please sign in to comment.