From 3d31e776fe9b566c8c7be9f1df1ef07710b53b45 Mon Sep 17 00:00:00 2001 From: cocolato Date: Fri, 16 Oct 2026 06:03:03 +0100 Subject: [PATCH] fix bug --- Include/internal/pycore_stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/internal/pycore_stats.h b/Include/internal/pycore_stats.h index 850e6ea455227c0..89798c381960804 100644 --- a/Include/internal/pycore_stats.h +++ b/Include/internal/pycore_stats.h @@ -30,7 +30,7 @@ extern "C" { do { \ PyStats *s = _PyStats_GET(); \ if (s) { \ - assert(opname < 512); \ + assert((opname) <= PYSTATS_MAX_UOP_ID); \ s->optimization_stats.opcode[opname].name++; \ } \ } while (0)