bio-twobit 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: 62c043e60fe3e2fec4a578563d72ecc97d1e829149a2f0d8690165dc05d5bd41
4
- data.tar.gz: 9584e93079bfbbd4cbf3bfeea0b5d11a638026f0cfea1a4144064c1cfbdb45b9
3
+ metadata.gz: 05f7fcb23695ca12dee11ef4b2127d7ebe24c2861d886b416f57634464aca3c1
4
+ data.tar.gz: 12b615e5b3f0f9fc0c1cc8a9d5024047e8ccd8cc174f1eda407534ae91135a8b
5
5
  SHA512:
6
- metadata.gz: cf70fc7feb773cc03552dbb3cf0f6f9c0d4d261a8f81c0f7826c5797aa6c7baea9c391bb1cf7a82ba317710cf3f4ef5088016e6c0ce315133b8c9cad380b73a9
7
- data.tar.gz: 5b8d65b21d777125873964fbdd9b999d1750263460e01218cf97e411ad4a54e3eedab264cd0efb900a11c141155a516661ecf0a473aab5ee4c40cc134ccf3635
6
+ metadata.gz: 250f6991320e4c97dd8cfe2361ed1a26665b4266b415ed70a39ead4a2082eea1f437edd0b19fa3502d63929cf6d9189ee0e8e01fb0597dcafb21b839cd717d4e
7
+ data.tar.gz: cab53356e0cf1b777c3d21fe0dc95a49bb5ffa705357b8e83d4295bad0eae63bf6d3aeb1c604d9b50df430c60569c898f83a2d4acf55ddd43dc1fe9ca7b91889
@@ -69,7 +69,7 @@ void bytes2bases(char *seq, uint8_t *byte, uint32_t sz, int offset) {
69
69
 
70
70
  // Deal with the first partial byte
71
71
  if(offset != 0) {
72
- while(offset < 4) {
72
+ while(offset < 4 && pos < sz) {
73
73
  seq[pos++] = byte2base(foo, offset++);
74
74
  }
75
75
  if(pos >= sz) return;
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bio
4
4
  class TwoBit
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bio-twobit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kojix2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-19 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This is a Ruby binding for lib2bit(https://github.com/dpryan79/lib2bit),
14
14
  which provides high-speed access to genomic data in 2bit file format.