From f0b444d26765edcb7fd426579266fafdaec4d410 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 29 Sep 2018 12:27:31 +0200 Subject: [PATCH] src/data/mdd-writer.c: Avoid compiler warning --- src/data/mdd-writer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/mdd-writer.c b/src/data/mdd-writer.c index a4d4e26f2e..bc8b54cd8b 100644 --- a/src/data/mdd-writer.c +++ b/src/data/mdd-writer.c @@ -434,10 +434,10 @@ mdd_write (struct file_handle *fh, struct dictionary *dict, const struct variable *var = dict_get_var (dict, i); xmlTextWriterStartElement (w->writer, _xml ("variable")); xmlTextWriterWriteFormatAttribute (w->writer, _xml ("id"), - "_%d", i + 1); + "_%zu", i + 1); write_attr (w->writer, "name", var_get_name (var)); xmlTextWriterWriteFormatAttribute (w->writer, _xml ("ref"), - "%d", i + 1); + "%zu", i + 1); xmlTextWriterEndElement (w->writer); } write_empty_element (w->writer, "deleted"); @@ -522,7 +522,7 @@ mdd_write (struct file_handle *fh, struct dictionary *dict, write_attr (w->writer, "name", label); xmlTextWriterWriteFormatAttribute ( w->writer, _xml ("value"), - "%d", string_set_count (&categories)); + "%zu", string_set_count (&categories)); xmlTextWriterEndElement (w->writer); } } -- 2.30.2