summaryrefslogtreecommitdiffstats
path: root/tests/test_decode1.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_decode1.c')
-rw-r--r--tests/test_decode1.c4
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},