diff options
author | yang-g <yangg@google.com> | 2016-04-14 16:41:09 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2016-04-14 16:41:09 -0700 |
commit | b01e013e9fb2cb21ee81248f160ec40df1bc763d (patch) | |
tree | 774fb9c18a45b32471950ea8ebc1c9c0be5a0d20 /src/compiler | |
parent | b8aa58b2cd32339b77fa2d2a7f38629a02d9c5e1 (diff) |
fix compiler warning
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/generator_helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/generator_helpers.h b/src/compiler/generator_helpers.h index 7cfea9d96d..16f0ca32df 100644 --- a/src/compiler/generator_helpers.h +++ b/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(""); } |