summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c6
-rw-r--r--Python/pythonrun.c1
-rw-r--r--Python/strtod.c4
3 files changed, 6 insertions, 5 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 35ec10a1c6..af6e0676ba 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -405,9 +405,9 @@ compiler_unit_check(struct compiler_unit *u)
{
basicblock *block;
for (block = u->u_blocks; block != NULL; block = block->b_list) {
- assert(block != (void *)0xcbcbcbcb);
- assert(block != (void *)0xfbfbfbfb);
- assert(block != (void *)0xdbdbdbdb);
+ assert((void *)block != (void *)0xcbcbcbcb);
+ assert((void *)block != (void *)0xfbfbfbfb);
+ assert((void *)block != (void *)0xdbdbdbdb);
if (block->b_instr != NULL) {
assert(block->b_ialloc > 0);
assert(block->b_iused > 0);
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 7cee8e4eda..2ceea2e889 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -504,6 +504,7 @@ Py_Finalize(void)
PyBytes_Fini();
PyLong_Fini();
PyFloat_Fini();
+ PyDict_Fini();
/* Cleanup Unicode implementation */
_PyUnicode_Fini();
diff --git a/Python/strtod.c b/Python/strtod.c
index 5c084a4de0..a248460bce 100644
--- a/Python/strtod.c
+++ b/Python/strtod.c
@@ -44,11 +44,11 @@
I do know about <values.h>, but the whole point of this file is that
we can't always trust that stuff to be there or to be correct.
*/
-static int MDMINEXPT = {-323};
+static int MDMINEXPT = -323;
static char MDMINFRAC[] = "494065645841246544";
static double ZERO = 0.0;
-static int MDMAXEXPT = { 309};
+static int MDMAXEXPT = 309;
static char MDMAXFRAC[] = "17976931348623157";
static double HUGE = 1.7976931348623157e308;