fix compiler warning

pull/6181/head
yang-g 9 years ago
parent b8aa58b2cd
commit b01e013e9f
  1. 3
      src/compiler/generator_helpers.h

@ -197,7 +197,8 @@ inline void GetComment(const DescriptorType *desc, CommentType type,
: location.trailing_comments;
Split(comments, '\n', out);
} else if (type == COMMENTTYPE_LEADING_DETACHED) {
for (int i = 0; i < location.leading_detached_comments.size(); i++) {
for (unsigned int i = 0; i < location.leading_detached_comments.size();
i++) {
Split(location.leading_detached_comments[i], '\n', out);
out->push_back("");
}

Loading…
Cancel
Save