From e3dad6b5f5949d798662bad2889097895679f7bf Mon Sep 17 00:00:00 2001 From: Juan Toledo Date: Mon, 21 Aug 2017 17:33:28 +0200 Subject: [PATCH] Replaced calculation with its value --- jnius/jnius_utils.pxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jnius/jnius_utils.pxi b/jnius/jnius_utils.pxi index 3f04de3..5f8a395 100644 --- a/jnius/jnius_utils.pxi +++ b/jnius/jnius_utils.pxi @@ -266,7 +266,7 @@ cdef int calculate_score(sign_args, args, is_varargs=False) except *: if r == 'S' or r == 'I': if isinstance(arg, int) or ( - (isinstance(arg, long) and arg < 2 ** 31)): + (isinstance(arg, long) and arg < 2147483648)): score += 10 continue elif isinstance(arg, float):