From 53a3cced7fc0b91530fe161d76975bb47407f946 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 21 Oct 2019 13:07:43 +0100 Subject: [PATCH] catacomb-python.h (GEN): Remove `const' from input table type carefully. We have this new machinery, so we should use it. --- catacomb-python.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catacomb-python.h b/catacomb-python.h index 6bae38a..4c7ced4 100644 --- a/catacomb-python.h +++ b/catacomb-python.h @@ -145,7 +145,8 @@ extern int convmpw(PyObject *, void *); int i; \ \ for (i = 0; g##base##tab[i]; i++) { \ - o = gc##base##_pywrap((/*unconst*/ gc##base *)g##base##tab[i]); \ + o = gc##base##_pywrap(CONVERT_CAREFULLY(gc##base *, const gc##base *, \ + g##base##tab[i])); \ PyDict_SetItemString(d, \ (/*unconst*/ char *)g##base##tab[i]->name, \ o); \ -- 2.11.0