yaz0 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 672cee69a6f75dd7377cf5eb17baeb36275224f98021be0a26f575488b29ea35
4
- data.tar.gz: 7ac698b98f48d2816a2b0852e1b8937a9f6d77613b94e7e8cc81f8e7ff03df08
3
+ metadata.gz: e8497431199299dfc86cb43d084da005a9ed7a11f83b7c3a01fc62a8dfb8ca0c
4
+ data.tar.gz: 9636cbce864ed5d1f7e3e639531cb69a5e329ae97e10aefcb1ef2c2d506901c5
5
5
  SHA512:
6
- metadata.gz: 488b8a8e52fc4e9d74caf1db27383cd6be5a5307c8a703b74cc3ec4c175c71bf883c1c4fc82146646ed79a53728c4d6508638914840b5ca16633a0bcbf61f97c
7
- data.tar.gz: a06e7544dbad27a7d1647ba621d2abadea7e17cb4fed47a1fbf78e91e4fff81af56955f7423b028265bcd2b51cfadc724ff9dd79b48d72cf7dffc4103f2c0863
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
- uint32_t inCursor;
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 == compressor->dataSize)
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, dst);
207
+ bestRun(dst, dst, &tmp);
208
208
  }
209
209
  }
210
210
 
data/lib/yaz0/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yaz0
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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-18 00:00:00.000000000 Z
11
+ date: 2020-05-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: