aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/compiler/generator_helpers.h3
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("");
}