diff options
-rw-r--r-- | llvm/lib/ObjectYAML/YAML.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/YAML.cpp b/llvm/lib/ObjectYAML/YAML.cpp index 54d5f79bdca..bfaa6944fc6 100644 --- a/llvm/lib/ObjectYAML/YAML.cpp +++ b/llvm/lib/ObjectYAML/YAML.cpp @@ -43,7 +43,8 @@ void yaml::BinaryRef::writeAsBinary(raw_ostream &OS, uint64_t N) const { return; } - for (uint64_t I = 0, E = std::min(N, Data.size() / 2); I != E; ++I) { + for (uint64_t I = 0, E = std::min<uint64_t>(N, Data.size() / 2); I != E; + ++I) { uint8_t Byte = llvm::hexDigitValue(Data[I * 2]); Byte <<= 4; Byte |= llvm::hexDigitValue(Data[I * 2 + 1]); |