summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-12-04 07:42:46 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-12-04 07:42:46 (GMT)
commit724b828e7941ab801769a09b1d494cc4d9ffda3b (patch)
treec5e51aec72ad1adb988bc27d86eff27da931e968 /Parser
parent7a934fb48da03e21a12482d6b3f8bc3835c77b27 (diff)
downloadcpython-724b828e7941ab801769a09b1d494cc4d9ffda3b.zip
cpython-724b828e7941ab801769a09b1d494cc4d9ffda3b.tar.gz
cpython-724b828e7941ab801769a09b1d494cc4d9ffda3b.tar.bz2
upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/node.c b/Parser/node.c
index b26ce61..564bd91 100644
--- a/Parser/node.c
+++ b/Parser/node.c
@@ -91,7 +91,7 @@ PyNode_AddChild(node *n1, int type, char *str, int lineno, int col_offset)
if (current_capacity < 0 || required_capacity < 0)
return E_OVERFLOW;
if (current_capacity < required_capacity) {
- if (required_capacity > PY_SIZE_MAX / sizeof(node)) {
+ if ((size_t)required_capacity > PY_SIZE_MAX / sizeof(node)) {
return E_NOMEM;
}
n = n1->n_child;