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:
Michael Droettboom 2024-04-04 17:14:35 -04:00 committed by GitHub
parent 63998a1347
commit b5e60918af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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