Skip to content

Commit 1522f83

Browse files
committed
[dmlab_module] Add missing const qualifications
1 parent c15de9b commit 1522f83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/dmlab_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static int Lab_init(PyObject* pself, PyObject* args, PyObject* kwds) {
245245
if (config != NULL) {
246246
PyObject *pykey, *pyvalue;
247247
Py_ssize_t pos = 0;
248-
char *key, *value;
248+
const char *key, *value;
249249

250250
while (PyDict_Next(config, &pos, &pykey, &pyvalue)) {
251251
#if PY_MAJOR_VERSION >= 3
@@ -273,7 +273,7 @@ static int Lab_init(PyObject* pself, PyObject* args, PyObject* kwds) {
273273
return -1;
274274
}
275275

276-
char* observation_name;
276+
const char* observation_name;
277277
int api_observation_count = self->env_c_api->observation_count(self->context);
278278
for (int i = 0; i < self->observation_count; ++i) {
279279
#if PY_MAJOR_VERSION >= 3

0 commit comments

Comments
 (0)