Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Hizuru3 authored Oct 3, 2023
1 parent 9d01039 commit c501b5d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ext/habachen.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,10 @@ Habachen_hira_to_hkata_impl(
{ /* got ownership: text?, exlist# */
if (ignore) {
exlist = PyMem_Calloc(EXLIST_SIZE, 1);
if (!exlist) {goto error;}
if (!exlist) {
PyErr_NoMemory();
goto error;
}
Py_INCREF(ignore);
int status = Habachen_build_ignore_list(
ignore, exlist, list_filler);
Expand Down Expand Up @@ -1003,7 +1006,10 @@ Habachen_hira_to_kata_impl(
{ /* got ownership: text, exlist# */
if (ignore) {
exlist = PyMem_Calloc(EXLIST_SIZE, 1);
if (!exlist) {goto error;}
if (!exlist) {
PyErr_NoMemory();
goto error;
}
Py_INCREF(ignore);
int status = Habachen_build_ignore_list(
ignore, exlist, list_filler);
Expand Down Expand Up @@ -1108,7 +1114,10 @@ Habachen_kata_to_hira_impl(
{ /* got ownership: text, exlist# */
if (ignore) {
exlist = PyMem_Calloc(EXLIST_SIZE, 1);
if (!exlist) {goto error;}
if (!exlist) {
PyErr_NoMemory();
goto error;
}
Py_INCREF(ignore);
int status = Habachen_build_ignore_list(
ignore, exlist, list_filler);
Expand Down

0 comments on commit c501b5d

Please sign in to comment.