GeezerVison is showing github.com — Make pythoncore compile cleanly with VisualStudio 2005. Used an expl… · yahalit/python@7d62cdb
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Modules/_struct.c +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -849,7 +849,7 @@ bu_longlong(const char *p, const formatdef *f) |
849 | 849 | } while (--i > 0); |
850 | 850 | /* Extend the sign bit. */ |
851 | 851 | if (SIZEOF_LONG_LONG > f->size) |
852 | | - x |= -(x & (1L << ((8 * f->size) - 1))); |
| 852 | + x |= -(x & ((PY_LONG_LONG)1 << ((8 * f->size) - 1))); |
853 | 853 | if (x >= LONG_MIN && x <= LONG_MAX) |
854 | 854 | return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); |
855 | 855 | return PyLong_FromLongLong(x); |
@@ -1085,7 +1085,7 @@ lu_longlong(const char *p, const formatdef *f) |
1085 | 1085 | } while (i > 0); |
1086 | 1086 | /* Extend the sign bit. */ |
1087 | 1087 | if (SIZEOF_LONG_LONG > f->size) |
1088 | | - x |= -(x & (1L << ((8 * f->size) - 1))); |
| 1088 | + x |= -(x & ((PY_LONG_LONG)1 << ((8 * f->size) - 1))); |
1089 | 1089 | if (x >= LONG_MIN && x <= LONG_MAX) |
1090 | 1090 | return PyInt_FromLong(Py_SAFE_DOWNCAST(x, PY_LONG_LONG, long)); |
1091 | 1091 | return PyLong_FromLongLong(x); |
|
Collapse file
Copy file name to clipboardExpand all lines: Python/import.c +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | #include "Python.h" |
5 | 5 |
|
6 | 6 | #include "Python-ast.h" |
| 7 | +#undef Yield /* undefine macro conflicting with winbase.h */ |
7 | 8 | #include "pyarena.h" |
8 | 9 | #include "pythonrun.h" |
9 | 10 | #include "errcode.h" |
|
Collapse file
Copy file name to clipboardExpand all lines: Python/pythonrun.c +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | #include "Python.h" |
5 | 5 |
|
6 | 6 | #include "Python-ast.h" |
| 7 | +#undef Yield /* undefine macro conflicting with winbase.h */ |
7 | 8 | #include "grammar.h" |
8 | 9 | #include "node.h" |
9 | 10 | #include "token.h" |
|