X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=pb.h;h=d0fa871dd3a4e99d59c61b4276eb027e7c8e85ac;hb=3486f67e0de8cd17009be6df493af1d9447935c7;hp=af58dca39308f5470c10ee958f5993a413bc4bfa;hpb=7713d43bc3d448358a04393c4e44dd12a768bdea;p=apps%2Fagl-service-can-low-level.git diff --git a/pb.h b/pb.h index af58dca3..d0fa871d 100644 --- a/pb.h +++ b/pb.h @@ -50,7 +50,7 @@ /* Version of the nanopb library. Just in case you want to check it in * your own program. */ -#define NANOPB_VERSION nanopb-0.3.2-dev +#define NANOPB_VERSION nanopb-0.3.3 /* Include all the system headers needed by nanopb. You will need the * definitions of the following: @@ -514,7 +514,7 @@ struct pb_extension_s { #define PB_ONEOF_POINTER(u, tag, st, m, fd, ltype, ptr) \ {tag, PB_ATYPE_POINTER | PB_HTYPE_ONEOF | ltype, \ fd, pb_delta(st, which_ ## u, u.m), \ - pb_membersize(st, u.m), 0, ptr} + pb_membersize(st, u.m[0]), 0, ptr} #define PB_ONEOF_FIELD(union_name, tag, type, rules, allocation, placement, message, field, prevfield, ptr) \ PB_ ## rules ## _ ## allocation(union_name, tag, message, field, \