Skip to content

Commit

Permalink
fixed merge conflixt
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboy2000 committed Feb 17, 2012
2 parents e49a971 + 31754cb commit eb3d4c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions compress.cpp
Expand Up @@ -141,7 +141,6 @@ vector<int> DATCompression::identity_decompress(vector<int> compressed) {
vector <int> DATCompression::compression(vector<int> data)
{
vector <int> compressed;
int max_data, min_data;

compressed = diff_compress(data);
compressed = huffman_compress(compressed);
Expand Down Expand Up @@ -349,7 +348,7 @@ vector<int> DATCompression::huffman_decompress(vector<int> compressed)
}
else if(status == 't')
{
if(i == compressed.size() - 2 && 8 - i == useless_bits)
if(i == compressed.size() - 2 && 8 - j == useless_bits)
break;

if((number & 0x80) == 0x80)
Expand Down Expand Up @@ -1105,7 +1104,7 @@ int main() {
// test_compression_on_file("data/B28-39_100_100_acq_0007.tab");
//test_compression_on_file("data/B28-39_100_100_acq_0400.tab");
//test_compression_on_file("data/B28-39_1600_1000_acq_0007.tab");
//test_compression_on_file("data/B28-39_1600_1000_acq_0400.tab");
test_compression_on_file("data/B28-39_1600_1000_acq_0400.tab");

return 0;
}
Expand Down

0 comments on commit eb3d4c0

Please sign in to comment.