From b5e60918afa53dfd59ad26a9f4b5207a9b304bc1 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 4 Apr 2024 17:14:35 -0400 Subject: gh-117549: Match declaration order for _Py_BackoffCounter initializer (#117551) Otherwise it might not compile with C++ (or certain C compilers/flags?). --- Include/internal/pycore_backoff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12