diff options
author | Michael Droettboom <mdboom@gmail.com> | 2024-04-04 21:14:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:14:35 (GMT) |
commit | b5e60918afa53dfd59ad26a9f4b5207a9b304bc1 (patch) | |
tree | 456617d0a42d1174013f62d2bd3224c77b87811e | |
parent | 63998a1347f3970ea4c69c881db69fc72b16a54c (diff) | |
download | cpython-b5e60918afa53dfd59ad26a9f4b5207a9b304bc1.zip cpython-b5e60918afa53dfd59ad26a9f4b5207a9b304bc1.tar.gz cpython-b5e60918afa53dfd59ad26a9f4b5207a9b304bc1.tar.bz2 |
gh-117549: Match declaration order for _Py_BackoffCounter initializer (#117551)
Otherwise it might not compile with C++ (or certain C compilers/flags?).
-rw-r--r-- | Include/internal/pycore_backoff.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_backoff.h b/Include/internal/pycore_backoff.h index 5d93c88..decf92b 100644 --- a/Include/internal/pycore_backoff.h +++ b/Include/internal/pycore_backoff.h @@ -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 |