提交 e96df9c9 authored 作者: Frederic Bastien's avatar Frederic Bastien

add missing return statement.

上级 4bf3c385
......@@ -1214,6 +1214,8 @@ CudaNdarray_inplace_add_div(PyObject* py_self, PyObject * py_other, int fct_nb)
static PyObject *
CudaNdarray_inplace_add(PyObject* py_self, PyObject * py_other){
CudaNdarray_inplace_add_div(py_self, py_other, 0);
Py_INCREF(py_self);
return py_self;
}
/*
......@@ -1223,6 +1225,8 @@ CudaNdarray_inplace_add(PyObject* py_self, PyObject * py_other){
static PyObject *
CudaNdarray_inplace_div(PyObject* py_self, PyObject * py_other){
CudaNdarray_inplace_add_div(py_self, py_other, 1);
Py_INCREF(py_self);
return py_self;
}
static PyNumberMethods CudaNdarrayNumberMethods =
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论