From 1c2b0d0b82a48bd323b46440f17b049090cabc79 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 27 Jan 2012 18:38:16 +0100 Subject: srd: Use PRIu64 for uint64_t values. Using %d seems to silently work on Linux, but leads to a segfault on Windows/MinGW. --- type_decoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'type_decoder.c') diff --git a/type_decoder.c b/type_decoder.c index 6ed2787..bbf1f64 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -114,9 +114,9 @@ static PyObject *Decoder_put(PyObject *self, PyObject *args) } pdo = l->data; - srd_spew("Instance %s put %d-%d %s on oid %d.", di->instance_id, - start_sample, end_sample, OUTPUT_TYPES[pdo->output_type], - output_id); + srd_spew("Instance %s put %" PRIu64 "-%" PRIu64 " %s on oid %d.", + di->instance_id, start_sample, end_sample, + OUTPUT_TYPES[pdo->output_type], output_id); if (!(pdata = g_try_malloc0(sizeof(struct srd_proto_data)))) return NULL; -- cgit v1.2.3-70-g09d2