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 e82c2ca commit 7e7c4b2Copy full SHA for 7e7c4b2
Python/tracemalloc.c
@@ -53,7 +53,8 @@ typedef struct tracemalloc_traceback traceback_t;
53
/* The maximum number of frames is either:
54
- The maximum number of frames we can store in `traceback_t.nframe`
55
- The maximum memory size_t we can allocate */
56
-static const unsigned long MAX_NFRAME = Py_MIN(UINT16_MAX, ((SIZE_MAX - sizeof(traceback_t)) / sizeof(frame_t) + 1));
+static const unsigned long MAX_NFRAME = (unsigned long)Py_MIN(
57
+ UINT16_MAX, ((SIZE_MAX - sizeof(traceback_t)) / sizeof(frame_t) + 1));
58
59
60
#define tracemalloc_empty_traceback _PyRuntime.tracemalloc.empty_traceback
0 commit comments