summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-07 13:42:38 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-07 13:42:38 (GMT)
commitfad85aadb0e168b7bde414694e448f34bb38c8ef (patch)
treef8fd61aa10789d9bda57c33d66ff4e60bd4d2794 /Modules/_pickle.c
parent41a87637c0406d73425f79ba11aa43dbae9cfe0f (diff)
downloadcpython-fad85aadb0e168b7bde414694e448f34bb38c8ef.zip
cpython-fad85aadb0e168b7bde414694e448f34bb38c8ef.tar.gz
cpython-fad85aadb0e168b7bde414694e448f34bb38c8ef.tar.bz2
Issue #25558: Use compile-time asserts.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 0e3a68e..06882d0 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -874,7 +874,7 @@ _write_size64(char *out, size_t value)
{
size_t i;
- assert(sizeof(size_t) <= 8);
+ Py_BUILD_ASSERT(sizeof(size_t) <= 8);
for (i = 0; i < sizeof(size_t); i++) {
out[i] = (unsigned char)((value >> (8 * i)) & 0xff);