aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/repeated_field.h
diff options
context:
space:
mode:
authorGravatar Andrew Paprocki <andrew@ishiboo.com>2014-10-31 16:44:04 -0400
committerGravatar Andrew Paprocki <andrew@ishiboo.com>2014-11-11 15:36:23 -0500
commitaf88ccb5fc6fcb1a4d6654cc3085cf269b646a96 (patch)
treedc9cb070c2e9e8849210a94ab7339c17dfef0df7 /src/google/protobuf/repeated_field.h
parent1ddf6937ee77f52b421894a7872f5c815a4c5c13 (diff)
Modify tests to compile on AIX with xlC compiler.
- `int64` typedef collision with `sys/inttypes.h` - `xlC` complains about `int` and pointer comparisons without casts
Diffstat (limited to 'src/google/protobuf/repeated_field.h')
-rw-r--r--src/google/protobuf/repeated_field.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/repeated_field.h b/src/google/protobuf/repeated_field.h
index 50051831..df0625c9 100644
--- a/src/google/protobuf/repeated_field.h
+++ b/src/google/protobuf/repeated_field.h
@@ -1307,11 +1307,11 @@ class RepeatedPtrIterator
it_ += d;
return *this;
}
- friend iterator operator+(iterator it, difference_type d) {
+ friend iterator operator+(iterator it, const difference_type d) {
it += d;
return it;
}
- friend iterator operator+(difference_type d, iterator it) {
+ friend iterator operator+(const difference_type d, iterator it) {
it += d;
return it;
}