mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-117549: Match declaration order for _Py_BackoffCounter initializer (#117551)
Otherwise it might not compile with C++ (or certain C compilers/flags?).
This commit is contained in:
parent
63998a1347
commit
b5e60918af
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue