aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2017-07-15 18:52:10 +0200
committerMarc Schink <swo-dev@marcschink.de>2017-07-21 09:26:27 +0200
commit6c7c3a7ffb0d8d63922d7033de6a43bdb22e22bd (patch)
tree9132888bb319fd1c4ada238aa7abb2d7b690e940
parent5de74c57b083fad4e8a11a9bf74cf470e9bac446 (diff)
Python: Add missing cast
-rw-r--r--bindings/python/swopy.i3
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/python/swopy.i b/bindings/python/swopy.i
index c4c42a1..2aea066 100644
--- a/bindings/python/swopy.i
+++ b/bindings/python/swopy.i
@@ -273,7 +273,8 @@ static int packet_callback(const libswo::Packet &packet, void *user_data)
if (!obj) {
PyErr_Format(PyExc_ValueError, "decoder callback invoked with "
- "invalid packet type: %i", packet.get_type());
+ "invalid packet type: %i",
+ static_cast<int>(packet.get_type()));
PyErr_Print();
return LIBSWO_ERR;
}