hyperll 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d0c4fabe7c55e40c305549cd0276a40b25e727f
4
- data.tar.gz: 3d1f3a829d04bd326175801666a901a3ddceca94
3
+ metadata.gz: 235467e81d8c9d27bbcf496c0f842b7e7d0209cc
4
+ data.tar.gz: 8023a87ad50ae7d5ba9c9d715cf6844b75c889f9
5
5
  SHA512:
6
- metadata.gz: 3e2cfc2dd72df69bf3003f26b0a170e8bf18ecdba97df9c0d3b9d93216fbe44ba70fffd2cc031b018c6f373a0f64b273ebc66eeff8cc123fd8b0e3e0911d8e9a
7
- data.tar.gz: fdcea9f152c741cc1fa78e3666820e75df6c9e7f9d766275f77585f403b4568d9a27c1d82e7a3ddc18c99f6741da261e91538d355f3ee31f448b834be18e13b5
6
+ metadata.gz: d9d41c4817d783199afe8b191455fd39b6891a883cceaf6c424ef3eb42f6d384a6083a60e40f41c9dd3564de6c36c4ec4185d309cb72a8779e6e90d6bcc60a7c
7
+ data.tar.gz: 944e54ea9644334ce6d684570e98697348c52c89f654e4c691db43a0a939b543206385aa1d8d5af2845f0a829566c1d536b16e39a2df5384416d489875118a85
@@ -65,9 +65,6 @@ static VALUE rb_delta_bytes_uncompress(VALUE self, VALUE rcompressed) {
65
65
  compressed[i] = (uint8_t)NUM2INT(rb_ary_entry(rcompressed, i));
66
66
  }
67
67
 
68
- int offset = 0;
69
- int len = 0;
70
-
71
68
  uint32_t *values = (uint32_t*)calloc(rlen, sizeof(uint32_t));
72
69
  int vlen = delta_bytes_uncompress(compressed, rlen, values);
73
70
  if (vlen < 0) {
@@ -117,8 +117,7 @@ void hyperllp_init(hyperllp *hllp, int p, int sp) {
117
117
  hllp->sparse_set = ALLOC(sparse_set);
118
118
 
119
119
  int sm = 1 << sp;
120
- int capacity = (int)(0.75 * count);
121
- sparse_set_init(hllp->sparse_set, sm, capacity);
120
+ sparse_set_init(hllp->sparse_set, sm, count);
122
121
  } else {
123
122
  hllp->sparse_set = NULL;
124
123
  }
data/ext/hyperll/varint.c CHANGED
@@ -21,8 +21,9 @@ uint32_t varint_read_unsigned(uint8_t bytes[], int maxlen, int *len) {
21
21
  return 0;
22
22
  }
23
23
 
24
- uint32_t value, i, b;
25
- value = i = b = 0;
24
+ uint32_t value = 0;
25
+ int i = 0;
26
+ int b = 0;
26
27
 
27
28
  while (((b = bytes[i]) & 0x80) != 0) {
28
29
  value |= (b & 0x7F) << (i * 7);
@@ -1,3 +1,3 @@
1
1
  module Hyperll
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Lindeman