diff --git a/zdeflate.cpp b/zdeflate.cpp index 22b2d507..a20f474c 100644 --- a/zdeflate.cpp +++ b/zdeflate.cpp @@ -130,7 +130,7 @@ void HuffmanEncoder::GenerateCodeLengths(unsigned int *codeBits, unsigned int ma if (1 == nCodes - treeBegin) { // special case when only one leaf in tree - fill(codeBits, codeBits + nCodes, 0); + std::fill(codeBits, codeBits + nCodes, 0); codeBits[tree[treeBegin].symbol] = 1; return; }