summaryrefslogtreecommitdiffstats
path: root/tests/test_decode1.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-11-30 15:01:59 +0000
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-11-30 15:01:59 +0000
commite66675a25d39bb5dfebea3041c8f2360bcac290c (patch)
treee5f49c1920e87f67c76d0809a224235c762a25a5 /tests/test_decode1.c
parenta77ab47c2979d9ce6d03aee2ffe9c7a34250d86e (diff)
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
Diffstat (limited to 'tests/test_decode1.c')
-rw-r--r--tests/test_decode1.c2
1 files changed, 1 insertions, 1 deletions
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);