Cleanup: fix compiler warnings.

This commit is contained in:
2018-10-28 17:22:26 +01:00
parent 046735d751
commit 41a284212a

View File

@@ -522,6 +522,7 @@ static PyObject *bpygpu_shader_uniform_int(
if (PyLong_Check(params.seq)) {
values[0] = PyC_Long_AsI32(params.seq);
length = 1;
ret = 0;
}
else {
PyObject *seq_fast = PySequence_Fast(params.seq, error_prefix);
@@ -655,7 +656,7 @@ static PyObject *bpygpu_shader_program_get(BPyGPUShader *self, void *UNUSED(clos
}
static PyGetSetDef bpygpu_shader_getseters[] = {
{"program",
{(char *)"program",
(getter)bpygpu_shader_program_get, (setter)NULL,
bpygpu_shader_program_doc, NULL},
{NULL, NULL, NULL, NULL, NULL} /* Sentinel */