summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/_librabbitmq/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_librabbitmq/connection.c b/Modules/_librabbitmq/connection.c
index 54f2427..ee9b122 100644
--- a/Modules/_librabbitmq/connection.c
+++ b/Modules/_librabbitmq/connection.c
@@ -741,7 +741,7 @@ PyDict_to_basic_properties(PyObject *p,
props->_flags |= AMQP_BASIC_PRIORITY_FLAG;
}
if ((value = PyDict_GetItemString(p, "timestamp")) != NULL) {
- props->timestamp = (uint8_t)PyInt_AS_LONG(value);
+ props->timestamp = (uint64_t)PyInt_AS_LONG(value);
props->_flags |= AMQP_BASIC_TIMESTAMP_FLAG;
}