diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-10-12 09:50:38 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-10-12 09:50:38 +0000 |
commit | 33e2d21b6e75d11572dbadb7a8a0038cd02206eb (patch) | |
tree | 53667f81c187a409b4536e58e4ae5660f84a4c8f /scipy/base/src/arrayobject.c | |
parent | e3ba6c65315e036990a8c28fd8dd5a072c7dc635 (diff) | |
download | numpy-33e2d21b6e75d11572dbadb7a8a0038cd02206eb.tar.gz |
Fixed remainder to behaved like Python.
Diffstat (limited to 'scipy/base/src/arrayobject.c')
-rw-r--r-- | scipy/base/src/arrayobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scipy/base/src/arrayobject.c b/scipy/base/src/arrayobject.c index cf8b002b0..305bf46bf 100644 --- a/scipy/base/src/arrayobject.c +++ b/scipy/base/src/arrayobject.c @@ -2341,7 +2341,7 @@ array_divmod(PyArrayObject *op1, PyObject *op2) { PyObject *divp, *modp, *result; - divp = array_divide(op1, op2); + divp = array_floor_divide(op1, op2); if (divp == NULL) return NULL; modp = array_remainder(op1, op2); if (modp == NULL) { @@ -3556,8 +3556,8 @@ array_flags_get(PyArrayObject *self) module = PyImport_ImportModule("scipy.base._internal"); if (module == NULL) return NULL; } - return PyObject_CallMethod(module, "flagsobj", "Oi", - self, self->flags); + return PyObject_CallMethod(module, "flagsobj", "Oii", + self, self->flags, 0); } /* |