Commit 067b1eec authored by Adam Cozzette's avatar Adam Cozzette Committed by GitHub

Merge pull request #3023 from acozzette/min

Fully qualify min as std::min in wire_format_lite.cc
parents cbd08cb7 07c284f8
......@@ -378,7 +378,7 @@ static void WriteArray(const CType* a, int n, io::CodedOutputStream* output) {
const int kAtATime = 128;
uint8 buf[sizeof(CType) * kAtATime];
for (int i = 0; i < n; i += kAtATime) {
int to_do = min(kAtATime, n - i);
int to_do = std::min(kAtATime, n - i);
uint8* ptr = buf;
for (int j = 0; j < to_do; j++) {
EncodeFixedSizeValue(a[i+j], ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment