From a25d2709ab98d2ba02c198c874147e379c5781ac Mon Sep 17 00:00:00 2001 From: kc0506 <kchong0506@gmail.com> Date: Mon, 10 Feb 2025 10:15:30 +0800 Subject: [PATCH] TYPE * -> TYPE --- Include/internal/pycore_asdl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/internal/pycore_asdl.h b/Include/internal/pycore_asdl.h index afeada88d13e24..c27f817b72af22 100644 --- a/Include/internal/pycore_asdl.h +++ b/Include/internal/pycore_asdl.h @@ -60,7 +60,7 @@ asdl_ ## NAME ## _seq *_Py_asdl_ ## NAME ## _seq_new(Py_ssize_t size, PyArena *a PyErr_NoMemory(); \ return NULL; \ } \ - n = (size ? (sizeof(TYPE *) * (size - 1)) : 0); \ + n = (size ? (sizeof(TYPE) * (size - 1)) : 0); \ /* check if size can be added safely */ \ if (n > SIZE_MAX - sizeof(asdl_ ## NAME ## _seq)) { \ PyErr_NoMemory(); \