Fully qualify min as std::min in wire_format_lite.cc
This commit is contained in:
parent
cbd08cb7d1
commit
07c284f86c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue