From 724b828e7941ab801769a09b1d494cc4d9ffda3b Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 4 Dec 2013 08:42:46 +0100 Subject: upcast int to size_t to silence two autological-constant-out-of-range-compare warnings with clang. --- Parser/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Parser/node.c') 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; -- cgit v1.2.1