Skip to content

Commit 1ad101c

Browse files
committed
Sadly, travis won't allow leak analyzer.
1 parent 3697eff commit 1ad101c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ branches:
88
only:
99
- master
1010

11-
script: make && ./unit && ./unit_chars && make clean && make DEBUG=1 && ./unit && ./unit_chars
11+
script: make && ./unit && ./unit_chars && make clean

tests/unit.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88

99
int issue21() {
1010
size_t sz = 110;
11+
size_t i;
1112
uint32_t *in = malloc(sz * sizeof(uint32_t));
1213
uint32_t *out = malloc(sz * sizeof(uint32_t));
13-
for (size_t i = 0; i < sz; ++i)
14+
for (i = 0; i < sz; ++i)
1415
in[i] = 255;
1516
uint32_t b = maxbits_length(in, sz);
1617
uint8_t *buf = malloc(simdpack_compressedbytes(sz, b));
@@ -33,11 +34,12 @@ int issue21() {
3334
}
3435

3536
int issue21FOR() {
37+
size_t i;
3638
size_t sz = 110;
3739
uint32_t *in = malloc(sz * sizeof(uint32_t));
3840
uint32_t *out = malloc(sz * sizeof(uint32_t));
3941
in[0] = 0;
40-
for (size_t i = 1; i < sz; ++i)
42+
for (i = 1; i < sz; ++i)
4143
in[i] = 255;
4244
uint32_t b = maxbits_length(in, sz);
4345
uint8_t *buf = malloc(simdpackFOR_compressedbytes(sz, b));

0 commit comments

Comments
 (0)