diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-04 08:42:46 +0100 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-04 08:42:46 +0100 |
commit | 4b58a23d4fcf4cb6d96404c4db2f40fcab494efd (patch) | |
tree | cf13d80d7c9e6ddbfa3a63b51dd8939ab097327b /Parser/node.c | |
parent | 7595c9b174a4b0d93e19b00e92c29296f369fb2c (diff) | |
download | cpython-4b58a23d4fcf4cb6d96404c4db2f40fcab494efd.tar.gz |
upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang.
Diffstat (limited to 'Parser/node.c')
-rw-r--r-- | Parser/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/node.c b/Parser/node.c index b26ce61c01..564bd91fe5 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; |