CPython: py_capi_utils: use more descriptive names for format string utilities.

This commit is contained in:
2018-10-07 12:21:09 -03:00
parent ee2e30683c
commit 91bfea5b05
3 changed files with 11 additions and 9 deletions

View File

@@ -92,7 +92,7 @@ static PyObject *bpygpu_IndexBuf_new(PyTypeObject *UNUSED(type), PyObject *args,
}
if (pybuffer.itemsize != 4 ||
PyC_Formatstr_is_float(PyC_Formatstr_get(pybuffer.format)))
PyC_Formatchar_is_floating_type(PyC_Formatchar_get(pybuffer.format)))
{
PyErr_Format(PyExc_ValueError,
"Each index must be an 4-bytes integer value");