diff --git a/unpletter/unpletter.cpp b/unpletter/unpletter.cpp index 357c0b7..936952b 100644 --- a/unpletter/unpletter.cpp +++ b/unpletter/unpletter.cpp @@ -28,9 +28,9 @@ public: { if (getBit())// Back reference { - data_type length = getInterlacedEliasGamma() + 1; + int length = getInterlacedEliasGamma() + 1; - if (length == 255 || (dsk2rom_tweak && length == 0)) + if (length == 262143 || (dsk2rom_tweak && length == 131072)) { break; } @@ -86,7 +86,7 @@ public: } std::cout << std::endl; - std::cout << "Output size: " << output.size() << std::endl; + std::cout << "Output size: " << std::dec << static_cast<int>(output.size()) << std::endl; } private: @@ -119,9 +119,9 @@ private: return bit; } - data_type getInterlacedEliasGamma() + int getInterlacedEliasGamma() { - data_type value = 1; + int value = 1; while (getBit()) { value = (value << 1) | getBit();