Skip to content

Commit

Permalink
Add cast to fix build on 32bit systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Jul 5, 2011
1 parent 676477e commit 752c247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nfc-emulate-forum-tag4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 752c247

Please sign in to comment.