mirror of
https://github.com/python/cpython.git
synced 2025-08-20 16:53:19 +00:00
Backport the .sln and .vcproj files for PCBuild8 from the python trunk to the 2.5 maintainance branch. This fixes build problems with visual studio 2005, and cleans up profile guided optimization.
This commit is contained in:
parent
f6d7371ec7
commit
2c8851e614
17 changed files with 2461 additions and 1416 deletions
|
@ -820,7 +820,7 @@ bu_longlong(const char *p, const formatdef *f)
|
|||
} while (--i > 0);
|
||||
/* Extend the sign bit. */
|
||||
if (SIZEOF_LONG_LONG > f->size)
|
||||
x |= -(x & (1L << ((8 * f->size) - 1)));
|
||||
x |= -(x & ( (PY_LONG_LONG)1 << ((8 * f->size) - 1)));
|
||||
if (x >= LONG_MIN && x <= LONG_MAX)
|
||||
return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long));
|
||||
return PyLong_FromLongLong(x);
|
||||
|
@ -1038,7 +1038,7 @@ lu_longlong(const char *p, const formatdef *f)
|
|||
} while (i > 0);
|
||||
/* Extend the sign bit. */
|
||||
if (SIZEOF_LONG_LONG > f->size)
|
||||
x |= -(x & (1L << ((8 * f->size) - 1)));
|
||||
x |= -(x & ( (PY_LONG_LONG)1 << ((8 * f->size) - 1)));
|
||||
if (x >= LONG_MIN && x <= LONG_MAX)
|
||||
return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long));
|
||||
return PyLong_FromLongLong(x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue