[Python-checkins] cpython (3.1): let's keep parenthesis around sizeof

benjamin.peterson python-checkins at python.org
Tue Mar 29 00:24:33 CEST 2011


http://hg.python.org/cpython/rev/8517e1f5d927
changeset:   69027:8517e1f5d927
branch:      3.1
parent:      69024:c5de208d205c
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