summaryrefslogtreecommitdiffstats
path: root/Modules/_blake2/blake2s_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_blake2/blake2s_impl.c')
-rw-r--r--Modules/_blake2/blake2s_impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_blake2/blake2s_impl.c b/Modules/_blake2/blake2s_impl.c
index 53c22c2..11d2e02 100644
--- a/Modules/_blake2/blake2s_impl.c
+++ b/Modules/_blake2/blake2s_impl.c
@@ -100,7 +100,7 @@ py_blake2s_new_impl(PyTypeObject *type, PyObject *data, int digest_size,
Py_buffer buf;
unsigned long leaf_size = 0;
- unsigned PY_LONG_LONG node_offset = 0;
+ unsigned long long node_offset = 0;
self = new_BLAKE2sObject(type);
if (self == NULL) {
@@ -170,7 +170,7 @@ py_blake2s_new_impl(PyTypeObject *type, PyObject *data, int digest_size,
if (node_offset_obj != NULL) {
node_offset = PyLong_AsUnsignedLongLong(node_offset_obj);
- if (node_offset == (unsigned PY_LONG_LONG) -1 && PyErr_Occurred()) {
+ if (node_offset == (unsigned long long) -1 && PyErr_Occurred()) {
goto error;
}
}