Skip to content

Commit

Permalink
Merge pull request #161 from AraHaan/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroIntensity authored Apr 22, 2024
2 parents 9932d14 + 64d8853 commit 11434c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/_view/awaitable.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ PyAwaitable_SaveValues(PyObject *awaitable, Py_ssize_t nargs, ...) {

va_list vargs;
va_start(vargs, nargs);
int offset = aw->aw_values_size;
Py_ssize_t offset = aw->aw_values_size;

if (aw->aw_values == NULL)
aw->aw_values = PyMem_Calloc(
Expand All @@ -567,7 +567,7 @@ PyAwaitable_SaveValues(PyObject *awaitable, Py_ssize_t nargs, ...) {

aw->aw_values_size += nargs;

for (int i = offset; i < aw->aw_values_size; i++)
for (Py_ssize_t i = offset; i < aw->aw_values_size; i++)
aw->aw_values[i] = Py_NewRef(va_arg(vargs, PyObject*));

va_end(vargs);
Expand Down Expand Up @@ -622,7 +622,7 @@ PyAwaitable_SaveArbValues(PyObject *awaitable, Py_ssize_t nargs, ...) {

va_list vargs;
va_start(vargs, nargs);
int offset = aw->aw_arb_values_size;
Py_ssize_t offset = aw->aw_arb_values_size;

if (aw->aw_arb_values == NULL)
aw->aw_arb_values = PyMem_Calloc(
Expand All @@ -643,7 +643,7 @@ PyAwaitable_SaveArbValues(PyObject *awaitable, Py_ssize_t nargs, ...) {

aw->aw_arb_values_size += nargs;

for (int i = offset; i < aw->aw_arb_values_size; i++)
for (Py_ssize_t i = offset; i < aw->aw_arb_values_size; i++)
aw->aw_arb_values[i] = va_arg(vargs, void *);

va_end(vargs);
Expand Down

0 comments on commit 11434c4

Please sign in to comment.