Skip to content

Commit

Permalink
gh-117549: Match declaration order for _Py_BackoffCounter initializer (
Browse files Browse the repository at this point in the history
…#117551)

Otherwise it might not compile with C++ (or certain C compilers/flags?).
  • Loading branch information
mdboom committed Apr 4, 2024
1 parent 63998a1 commit b5e6091
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 b5e6091

Please sign in to comment.