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):