aboutsummaryrefslogtreecommitdiffstats
path: root/pb_encode.c
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-08-23 18:50:09 +0000
committerPetteri Aimonen <jpa@npb.mail.kapsi.fi>2011-08-23 18:50:09 +0000
commita3534170212675e0c7d3d89e23838e25f3664316 (patch)
tree68ab25766687892ed319fed8d6afa5f0ace44556 /pb_encode.c
parent64ac18c8848d3071a16065c84fca3b5e7210ce95 (diff)
More unittests
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@966 e3a754e5-d11d-0410-8d38-ebb782a927b9
Diffstat (limited to 'pb_encode.c')
-rw-r--r--pb_encode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pb_encode.c b/pb_encode.c
index d333cfd5..e83e0685 100644
--- a/pb_encode.c
+++ b/pb_encode.c
@@ -81,7 +81,7 @@ static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *fie
if (count == 0)
return true;
- if (PB_LTYPE(field->type) < PB_LTYPE_LAST_PACKABLE)
+ if (PB_LTYPE(field->type) <= PB_LTYPE_LAST_PACKABLE)
{
if (!pb_encode_tag(stream, PB_WT_STRING, field->tag))
return false;