This commit is contained in:
Kovid Goyal 2023-02-08 20:45:41 +05:30
parent 7c8c7fe3a2
commit 1d2a8288ee
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -47,7 +47,7 @@ init_FG_BG_table(void) {
} }
} }
PyObject* create_256_color_table() { PyObject* create_256_color_table(void) {
init_FG_BG_table(); init_FG_BG_table();
PyObject *ans = PyTuple_New(arraysz(FG_BG_256)); PyObject *ans = PyTuple_New(arraysz(FG_BG_256));
if (ans == NULL) return PyErr_NoMemory(); if (ans == NULL) return PyErr_NoMemory();
@ -83,7 +83,7 @@ dealloc_cp(ColorProfile* self) {
} }
ColorProfile* ColorProfile*
alloc_color_profile() { alloc_color_profile(void) {
return (ColorProfile*)new_cp(&ColorProfile_Type, NULL, NULL); return (ColorProfile*)new_cp(&ColorProfile_Type, NULL, NULL);
} }