diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c index f07b5f8257e..0971a64fccb 100644 --- a/Modules/getbuildinfo.c +++ b/Modules/getbuildinfo.c @@ -34,9 +34,9 @@ const char * Py_GetBuildInfo(void) { - static char buildinfo[50 + sizeof HGVERSION + - ((sizeof HGTAG > sizeof HGBRANCH) ? - sizeof HGTAG : sizeof HGBRANCH)]; + static char buildinfo[50 + sizeof(HGVERSION) + + ((sizeof(HGTAG) > sizeof(HGBRANCH)) ? + sizeof(HGTAG) : sizeof(HGBRANCH))]; const char *revision = _Py_hgversion(); const char *sep = *revision ? ":" : ""; const char *hgid = _Py_hgidentifier();