Skip to content

Commit d711623

Browse files
committed
Misc. changes
1 parent 7fb2a63 commit d711623

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

faops.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ KHASH_MAP_INIT_STR(str2str, char*)
4141
#define ArraySize(a) (sizeof(a) / sizeof((a)[0]))
4242

4343
enum {
44-
BUFFER_SIZE = 2 ^ 16,
45-
BUFFER_SIZE_LONG = 2 ^ 32
44+
BUFFER_SIZE = 1 << 16,
4645
};
4746

4847
enum {
@@ -1850,7 +1849,7 @@ int fa_region(int argc, char *argv[]) {
18501849
while (getline(&lineptr, &len, fp_list) != -1) {
18511850
int ret; // return value from hashing
18521851
char buf1[512]; // buffers for seq_name in region.txt
1853-
char buf2[BUFFER_SIZE_LONG]; // buffers for runlist in region.txt
1852+
char buf2[65536]; // buffers for runlist in region.txt
18541853
if (sscanf(lineptr, "%[^:]:%[0-9,-]\n", buf1, buf2) == 2) {
18551854
khint_t entry = kh_put(str2str, hash, strdup(buf1), &ret);
18561855
kh_val(hash, entry) = strdup(buf2);

test/16-masked.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
load test_helper
44

5-
@test "masked" {
5+
@test "masked 1" {
66
exp="read46:3-4"
77
res=$($BATS_TEST_DIRNAME/../faops masked $BATS_TEST_DIRNAME/ufasta.fa | grep '^read46' | head -n 1)
88
assert_equal "$exp" "$res"
99
}
1010

11-
@test "masked" {
11+
@test "masked 2" {
1212
exp="read0:1"
1313
res=$($BATS_TEST_DIRNAME/../faops masked $BATS_TEST_DIRNAME/ufasta.fa | grep '^read0' | head -n 1)
1414
assert_equal "$exp" "$res"

0 commit comments

Comments
 (0)