Silenced some warnings about comparison between signed and unsigned integer

expressions.
This commit is contained in:
Serhiy Storchaka 2014-09-05 10:10:23 +03:00
parent 2ee44f7f55
commit 67c719b34b
4 changed files with 12 additions and 10 deletions

View file

@ -70,8 +70,8 @@ fancy_roundup(int n)
* Note that this would be straightforward if a node stored its current
* capacity. The code is tricky to avoid that.
*/
#define XXXROUNDUP(n) ((n) <= 1 ? (n) : \
(n) <= 128 ? _Py_SIZE_ROUND_UP((n), 4) : \
#define XXXROUNDUP(n) ((n) <= 1 ? (n) : \
(n) <= 128 ? (int)_Py_SIZE_ROUND_UP((n), 4) : \
fancy_roundup(n))