diff options
Diffstat (limited to 'Python/bltinmodule.c')
| -rw-r--r-- | Python/bltinmodule.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index a6e02be..85fd58e 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -412,6 +412,8 @@ min_max(v, sign)  		return NULL;  	}  	n = (*sq->sq_length)(v); +	if (n < 0) +		return NULL;  	if (n == 0) {  		err_setstr(ValueError, "min() or max() of empty sequence");  		return NULL;  | 
