Skip to content

Commit

Permalink
Merge pull request #107 from JayXon/min
Browse files Browse the repository at this point in the history
Avoid min name conflict
  • Loading branch information
lvandeve committed May 27, 2016
2 parents e0e937e + 56d968c commit 6818a08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zopfli/squeeze.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static double GetCostModelMinCost(CostModelFun* costmodel, void* costcontext) {
return costmodel(bestlength, bestdist, costcontext);
}

static size_t min(size_t a, size_t b) {
static size_t zopfli_min(size_t a, size_t b) {
return a < b ? a : b;
}

Expand Down Expand Up @@ -283,7 +283,7 @@ static double GetBestLengths(ZopfliBlockState *s,
}
}
/* Lengths. */
kend = min(leng, inend-i);
kend = zopfli_min(leng, inend-i);
mincostaddcostj = mincost + costs[j];
for (k = 3; k <= kend; k++) {
double newCost;
Expand Down

0 comments on commit 6818a08

Please sign in to comment.