writer code: 160 v = static_cast<int>(strtol(data[i].c_str(),&end,10)); 161 if (v < 1) continue; 162 163 const google::protobuf::FieldDescriptor *fd = sub_descriptor->FindFieldByName(vecname[i]); 164 const google::protobuf::EnumDescriptor *ed = fd -> enum_type(); 165 const google::protobuf::EnumValueDescriptor *ev = ed -> FindValueByNumber(v);
when if (v < 1), data read are in accordance with raw data modify if (v < 1) to if (v < 0), data read are not in accordance with raw data. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.