diff options
author | SlowRiot <rain.backnet@gmail.com> | 2014-11-07 03:46:25 +0000 |
---|---|---|
committer | SlowRiot <rain.backnet@gmail.com> | 2014-11-07 03:46:25 +0000 |
commit | 8a77a04f829f55f59b0d59176378201ca62f2510 (patch) | |
tree | 4a3e084fee48fa5a5b7b368ee96987eb047f7a89 | |
parent | a85479de3c8b0a9018282ec7edcc3333786f9529 (diff) |
oops, typo fix
-rw-r--r-- | lodepng.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lodepng.cpp b/lodepng.cpp index c0e8264..e2d3297 100644 --- a/lodepng.cpp +++ b/lodepng.cpp @@ -814,7 +814,7 @@ unsigned lodepng_huffman_code_lengths(unsigned* lengths, const unsigned* frequen for(i = 0; i + 1 < numprev; i += 2) { /*merge prev_row[i] and prev_row[i + 1] into new coin*/ - Coin* coin = &coins[numcoins]++; + Coin* coin = &coins[numcoins++]; coin_copy(coin, &prev_row[i]); add_coins(coin, &prev_row[i + 1]); } |