[Python-checkins] cpython (2.7): let's keep parenthesis around sizeof
benjamin.peterson
python-checkins at python.org
Tue Mar 29 00:24:35 CEST 2011
http://hg.python.org/cpython/rev/fe5b90b1e8ea
changeset: 69028:fe5b90b1e8ea
branch: 2.7
parent: 69023:cc04b591d768
user: Benjamin Peterson <benjamin at python.org>
date: Mon Mar 28 17:25:15 2011 -0500
summary:
let's keep parenthesis around sizeof
files:
Modules/getbuildinfo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
--- 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();
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list