Skip to content

Commit

Permalink
Fix problems with > 4GB iso files.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Apr 11, 2015
1 parent bd98eb2 commit 6a6a0f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compress.h
Expand Up @@ -7,7 +7,7 @@

namespace maxcso {

static const char *VERSION = "1.4.4";
static const char *VERSION = "1.4.5";

struct Task;

Expand Down
2 changes: 1 addition & 1 deletion src/input.cpp
Expand Up @@ -216,7 +216,7 @@ void Input::ReadSector() {
pos = static_cast<uint64_t>(index & 0x7FFFFFFF) << csoIndexShift_;
const int64_t nextPos = static_cast<uint64_t>(nextIndex & 0x7FFFFFFF) << csoIndexShift_;
len = static_cast<unsigned int>(nextPos - pos);
offset = pos_ & (csoBlockSize_ - 1);
offset = pos_ & static_cast<uint64_t>(csoBlockSize_ - 1);

switch (type_) {
case CSO1:
Expand Down
2 changes: 1 addition & 1 deletion src/sector.cpp
Expand Up @@ -65,7 +65,7 @@ void Sector::Process(int64_t pos, uint8_t *buffer, SectorCallback ready) {
if (!busy_) {
busy_ = true;

pos_ = pos & ~(blockSize_ - 1);
pos_ = pos & ~static_cast<uint64_t>(blockSize_ - 1);
bestSize_ = blockSize_;
bestFmt_ = SECTOR_FMT_ORIG;

Expand Down

0 comments on commit 6a6a0f8

Please sign in to comment.