提交 aa85ac7d authored 作者: Caglar's avatar Caglar

fixed typos.

上级 ec09b1c8
...@@ -365,7 +365,7 @@ static int CudaNdarray_alloc_contiguous(CudaNdarray *self, const int nd, ...@@ -365,7 +365,7 @@ static int CudaNdarray_alloc_contiguous(CudaNdarray *self, const int nd,
//Detect overflow on unsigned integer //Detect overflow on unsigned integer
if (dim[i] != 0 && size > (SIZE_MAX / dim[i])) { if (dim[i] != 0 && size > (SIZE_MAX / dim[i])) {
PyErr_Format(PyExc_AssertionError, PyErr_Format(PyExc_AssertionError,
"Can't store in size_t the bytes resquested", "Can't store in size_t for the bytes requested",
size); size);
return -1; return -1;
} }
...@@ -382,7 +382,7 @@ static int CudaNdarray_alloc_contiguous(CudaNdarray *self, const int nd, ...@@ -382,7 +382,7 @@ static int CudaNdarray_alloc_contiguous(CudaNdarray *self, const int nd,
//Detect overflow on unsigned integer //Detect overflow on unsigned integer
if (dim[i] != 0 && size > (SIZE_MAX / dim[i])) { if (dim[i] != 0 && size > (SIZE_MAX / dim[i])) {
PyErr_Format(PyExc_AssertionError, PyErr_Format(PyExc_AssertionError,
"Can't store in size_t the bytes resquested", "Can't store in size_t for the bytes requested",
size); size);
return -1; return -1;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论