diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2013-07-31 21:54:18 +0200 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-07-31 21:54:18 +0200 |
| commit | c27cd71cd71e5b3f464f6994e2a73f201eb430ca (patch) | |
| tree | b973bb782096772fc8a38a0c3bd534acc867c10a /Modules/_sha3/sha3module.c | |
| parent | 5c30a75722f1fb42f4e49dcc5dd30d90d7717086 (diff) | |
| parent | c91d5eea106d191e931f953bdbdb1db25e051767 (diff) | |
| download | cpython-git-c27cd71cd71e5b3f464f6994e2a73f201eb430ca.tar.gz | |
Merge
Diffstat (limited to 'Modules/_sha3/sha3module.c')
| -rw-r--r-- | Modules/_sha3/sha3module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_sha3/sha3module.c b/Modules/_sha3/sha3module.c index 32cd85a1ef..4e6352b7ba 100644 --- a/Modules/_sha3/sha3module.c +++ b/Modules/_sha3/sha3module.c @@ -322,7 +322,7 @@ SHA3_update(SHA3object *self, PyObject *args) GET_BUFFER_VIEW_OR_ERROUT(obj, &buf); /* add new data, the function takes the length in bits not bytes */ -#ifdef WITH_THREADS +#ifdef WITH_THREAD if (self->lock == NULL && buf.len >= HASHLIB_GIL_MINSIZE) { self->lock = PyThread_allocate_lock(); } @@ -464,7 +464,7 @@ SHA3_factory(PyObject *args, PyObject *kwdict, const char *fmt, } if (data_obj) { -#ifdef WITH_THREADS +#ifdef WITH_THREAD if (buf.len >= HASHLIB_GIL_MINSIZE) { /* invariant: New objects can't be accessed by other code yet, * thus it's safe to release the GIL without locking the object. |
