Skip to content

Commit

Permalink
pythongh-117549: Match declaration order for _Py_BackoffCounter initi…
Browse files Browse the repository at this point in the history
…alizer (python#117551)

Otherwise it might not compile with C++ (or certain C compilers/flags?).
  • Loading branch information
mdboom authored and diegorusso committed Apr 17, 2024
1 parent 5f4c470 commit e16efff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/internal/pycore_backoff.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ make_backoff_counter(uint16_t value, uint16_t backoff)
{
assert(backoff <= 15);
assert(value <= 0xFFF);
return (_Py_BackoffCounter){.value = value, .backoff = backoff};
return (_Py_BackoffCounter){.backoff = backoff, .value = value};
}

static inline _Py_BackoffCounter
Expand Down

0 comments on commit e16efff

Please sign in to comment.