diff options
author | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-07-28 14:54:03 +0000 |
---|---|---|
committer | Petteri Aimonen <jpa@npb.mail.kapsi.fi> | 2011-07-28 14:54:03 +0000 |
commit | b9ca72e6af6a3a74a5a1f581540e5004ab72ea2c (patch) | |
tree | 21cc5c662c52fc11c6c01bdc5253fbf95ccb7a06 /tests/test_decode1.c | |
parent | d9238da690d5eda9cb5139aa26734dff5ded2285 (diff) |
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@947 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'tests/test_decode1.c')
-rw-r--r-- | tests/test_decode1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_decode1.c b/tests/test_decode1.c index 8623fbdb..4e0d7117 100644 --- a/tests/test_decode1.c +++ b/tests/test_decode1.c @@ -36,7 +36,7 @@ const pb_field_t Person_PhoneNumber_fields[] = { offsetof(Person_PhoneNumber, number), 0, membersize(Person_PhoneNumber, number), 0, 0}, - {2, PB_HTYPE_OPTIONAL | PB_LTYPE_ENUM, + {2, PB_HTYPE_OPTIONAL | PB_LTYPE_VARINT, offsetof(Person_PhoneNumber, type), offsetof(Person_PhoneNumber, has_type), membersize(Person_PhoneNumber, type), 0, @@ -50,7 +50,7 @@ const pb_field_t Person_fields[] = { offsetof(Person, name), 0, membersize(Person, name), 0, 0}, - {2, PB_HTYPE_REQUIRED | PB_LTYPE_INT32, + {2, PB_HTYPE_REQUIRED | PB_LTYPE_VARINT, offsetof(Person, id), 0, membersize(Person, id), 0, 0}, |