From: Michael Droettboom Date: Thu, 4 Apr 2024 21:14:35 +0000 (-0400) Subject: gh-117549: Match declaration order for _Py_BackoffCounter initializer (#117551) X-Git-Tag: v3.13.0a6~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5e60918afa53dfd59ad26a9f4b5207a9b304bc1;p=thirdparty%2FPython%2Fcpython.git gh-117549: Match declaration order for _Py_BackoffCounter initializer (#117551) Otherwise it might not compile with C++ (or certain C compilers/flags?). --- diff --git a/Include/internal/pycore_backoff.h b/Include/internal/pycore_backoff.h index 5d93c889e849..decf92bc419c 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