mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
require a long long data type (closes #27961)
This commit is contained in:
parent
b3b0767861
commit
ed4aa83ff7
32 changed files with 156 additions and 442 deletions
|
|
@ -1182,10 +1182,8 @@ fromWideIntObj(PyObject* tkapp, Tcl_Obj *value)
|
|||
{
|
||||
Tcl_WideInt wideValue;
|
||||
if (Tcl_GetWideIntFromObj(Tkapp_Interp(tkapp), value, &wideValue) == TCL_OK) {
|
||||
#ifdef HAVE_LONG_LONG
|
||||
if (sizeof(wideValue) <= SIZEOF_LONG_LONG)
|
||||
return PyLong_FromLongLong(wideValue);
|
||||
#endif
|
||||
return _PyLong_FromByteArray((unsigned char *)(void *)&wideValue,
|
||||
sizeof(wideValue),
|
||||
PY_LITTLE_ENDIAN,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue