commit | f051e43b22af014364e231c36489e6745993ea34 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@python.org> | Tue Sep 13 20:22:02 2016 +0200 |
committer | Christian Heimes <christian@python.org> | Tue Sep 13 20:22:02 2016 +0200 |
tree | 7a35470d92a6a5146bfa321bda6f9024e90adc7d | |
parent | a4d9b17b1fd0f3432c72d686c7668169e39e7119 [diff] [blame] |
Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize memcpy().
diff --git a/Python/marshal.c b/Python/marshal.c index 627a842..87a4b24 100644 --- a/Python/marshal.c +++ b/Python/marshal.c
@@ -130,7 +130,7 @@ m = p->end - p->ptr; if (p->fp != NULL) { if (n <= m) { - Py_MEMCPY(p->ptr, s, n); + memcpy(p->ptr, s, n); p->ptr += n; } else { @@ -140,7 +140,7 @@ } else { if (n <= m || w_reserve(p, n - m)) { - Py_MEMCPY(p->ptr, s, n); + memcpy(p->ptr, s, n); p->ptr += n; } }