Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5e6091

Browse files
authored
gh-117549: Match declaration order for _Py_BackoffCounter initializer (#117551)
Otherwise it might not compile with C++ (or certain C compilers/flags?).
1 parent 63998a1 commit b5e6091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/internal/pycore_backoff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ make_backoff_counter(uint16_t value, uint16_t backoff)
4444
{
4545
assert(backoff <= 15);
4646
assert(value <= 0xFFF);
47-
return (_Py_BackoffCounter){.value = value, .backoff = backoff};
47+
return (_Py_BackoffCounter){.backoff = backoff, .value = value};
4848
}
4949

5050
static inline _Py_BackoffCounter

0 commit comments

Comments
 (0)