From e16efff0e0326b3b1be2071046dbf7f8d2137289 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 4 Apr 2024 17:14:35 -0400 Subject: [PATCH] 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 5d93c889e84976b..decf92bc419c044 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