From 87e45b04b5029589219266324a0431ee44518eb8 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 1 Nov 2014 22:45:43 -0700 Subject: [PATCH] Fix dumb mistake reading cso files. Need to set up unit tests, keep testing mainly with iso files. --- src/compress.h | 2 +- src/input.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compress.h b/src/compress.h index ed7ce7058..c8f2389f2 100644 --- a/src/compress.h +++ b/src/compress.h @@ -7,7 +7,7 @@ namespace maxcso { -static const char *VERSION = "1.4.2"; +static const char *VERSION = "1.4.3"; struct Task; diff --git a/src/input.cpp b/src/input.cpp index 23e00e1f1..2048423af 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -75,7 +75,7 @@ void Input::DetectFormat() { csoBlockSize_ = header->sector_size; csoBlockShift_ = 0; - for (uint32_t i = header->sector_size; i > 0; i >>= 1) { + for (uint32_t i = header->sector_size; i > 1; i >>= 1) { ++csoBlockShift_; }