From e66675a25d39bb5dfebea3041c8f2360bcac290c Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Wed, 30 Nov 2011 15:01:59 +0000 Subject: Merged 0003-Fixed-format-specifiers.patch by Matt Kern. Fixes cross-platform issues with the length modifier in printf specifiers, most importantly %d -> %ld. git-svn-id: https://svn.kapsi.fi/jpa/nanopb@1020 e3a754e5-d11d-0410-8d38-ebb782a927b9 --- tests/test_decode1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_decode1.c') diff --git a/tests/test_decode1.c b/tests/test_decode1.c index 3f02745e..b412ea85 100644 --- a/tests/test_decode1.c +++ b/tests/test_decode1.c @@ -23,7 +23,7 @@ bool print_person(pb_istream_t *stream) /* Now the decoding is done, rest is just to print stuff out. */ printf("name: \"%s\"\n", person.name); - printf("id: %d\n", person.id); + printf("id: %ld\n", (long)person.id); if (person.has_email) printf("email: \"%s\"\n", person.email); -- cgit 1.2.3-korg