yaz0 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/yaz0/compress.c +3 -3
- data/lib/yaz0/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8497431199299dfc86cb43d084da005a9ed7a11f83b7c3a01fc62a8dfb8ca0c
|
4
|
+
data.tar.gz: 9636cbce864ed5d1f7e3e639531cb69a5e329ae97e10aefcb1ef2c2d506901c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73536d99b19fc8a56b5171cf031b3ae897ce9058f84d8874931bd5155b594b190f8f47795d47c506b3022091c78522744112bb5293e563517434f5b285d4e9e4
|
7
|
+
data.tar.gz: e986e0043ee983ed7c3301acb176bfdf37a9a5dd6ce22ceacba73a3479973c851ec841c17cbc69f8a6d909ee5afaa70a9d95c8c646ef1eae0f35c0df3610cde6
|
data/ext/yaz0/compress.c
CHANGED
@@ -68,7 +68,7 @@ typedef struct
|
|
68
68
|
Yaz0Buffer *dst;
|
69
69
|
const char *data;
|
70
70
|
uint32_t dataSize;
|
71
|
-
|
71
|
+
int32_t inCursor;
|
72
72
|
} Yaz0Compressor;
|
73
73
|
|
74
74
|
static int runCost(const Yaz0Run *run)
|
@@ -196,7 +196,7 @@ static void makeRun(Yaz0Run *dst, Yaz0Compressor *compressor, int dataOnly)
|
|
196
196
|
Yaz0Run tmp;
|
197
197
|
|
198
198
|
makeRunNone(dst);
|
199
|
-
if (compressor->inCursor
|
199
|
+
if (compressor->inCursor >= compressor->dataSize)
|
200
200
|
return;
|
201
201
|
/* Get the basic data run */
|
202
202
|
makeRunData(dst, compressor->data[compressor->inCursor]);
|
@@ -204,7 +204,7 @@ static void makeRun(Yaz0Run *dst, Yaz0Compressor *compressor, int dataOnly)
|
|
204
204
|
{
|
205
205
|
makeRunNone(&tmp);
|
206
206
|
makeMatch(&tmp, compressor);
|
207
|
-
bestRun(dst, &tmp
|
207
|
+
bestRun(dst, dst, &tmp);
|
208
208
|
}
|
209
209
|
}
|
210
210
|
|
data/lib/yaz0/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaz0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nax
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|