We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b460fc commit b20722cCopy full SHA for b20722c
Include/internal/pycore_backoff.h
@@ -40,7 +40,7 @@ extern "C" {
40
#define MAX_VALUE 0x1FFF
41
42
#define MAKE_VALUE_AND_BACKOFF(value, backoff) \
43
- ((value << BACKOFF_BITS) | backoff)
+ ((uint16_t)(((value) << BACKOFF_BITS) | (backoff)))
44
45
// For previous backoff b we use value x such that
46
// x + 1 is near to 2**(2*b+1) and x + 1 is prime.
Lib/test/test_cppext/extension.cpp
@@ -14,6 +14,7 @@
14
15
#ifdef TEST_INTERNAL_C_API
16
// gh-135906: Check for compiler warnings in the internal C API
17
+# include "internal/pycore_backoff.h"
18
# include "internal/pycore_frame.h"
19
#endif
20
0 commit comments