From 752c24776157c3a35a416257ffab870c654e5237 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Tue, 5 Jul 2011 08:00:11 +0000 Subject: [PATCH] Add cast to fix build on 32bit systems. --- examples/nfc-emulate-forum-tag4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nfc-emulate-forum-tag4.c b/examples/nfc-emulate-forum-tag4.c index 5c9d75f..b942b96 100644 --- a/examples/nfc-emulate-forum-tag4.c +++ b/examples/nfc-emulate-forum-tag4.c @@ -272,7 +272,7 @@ ndef_message_save (char *filename, struct nfcforum_tag4_ndef_data *tag_data) err (EXIT_FAILURE, "fopen (%s, w)", filename); if (1 != fwrite (tag_data->ndef_file + 2, tag_data->ndef_file_len - 2, 1, F)) { - err (EXIT_FAILURE, "fwrite (%lu)", tag_data->ndef_file_len -2); + err (EXIT_FAILURE, "fwrite (%d)", (int) tag_data->ndef_file_len -2); } fclose (F);