summaryrefslogtreecommitdiffstats
path: root/Modules/getbuildinfo.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-03-28 22:25:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-03-28 22:25:15 (GMT)
commitad45bfe2d390eb94cf6d0e91b97c1db4bef2a2a9 (patch)
tree05422fdcd8f207030f632a3a6a64541d87a08c40 /Modules/getbuildinfo.c
parent9b2e67c4faf29e1e637928c34362cbb2069927df (diff)
downloadcpython-ad45bfe2d390eb94cf6d0e91b97c1db4bef2a2a9.zip
cpython-ad45bfe2d390eb94cf6d0e91b97c1db4bef2a2a9.tar.gz
cpython-ad45bfe2d390eb94cf6d0e91b97c1db4bef2a2a9.tar.bz2
let's keep parenthesis around sizeof
Diffstat (limited to 'Modules/getbuildinfo.c')
-rw-r--r--Modules/getbuildinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index ac51881..7069b6e 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -42,9 +42,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();