Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3d12ac commit 35c3f4fCopy full SHA for 35c3f4f
1 file changed
Python/modsupport.c
@@ -307,7 +307,7 @@ do_mkvalue(const char **p_format, va_list *p_va)
307
{
308
unsigned int n;
309
n = va_arg(*p_va, unsigned int);
310
- if (n > PyInt_GetMax())
+ if (n > (unsigned long)PyInt_GetMax())
311
return PyLong_FromUnsignedLong((unsigned long)n);
312
else
313
return PyInt_FromLong(n);
@@ -320,7 +320,7 @@ do_mkvalue(const char **p_format, va_list *p_va)
320
321
unsigned long n;
322
n = va_arg(*p_va, unsigned long);
323
324
return PyLong_FromUnsignedLong(n);
325
326
0 commit comments