Skip to content

Commit

Permalink
Fixed issue ha7ilm#15 by fixing allocating size in bytes instead of s…
Browse files Browse the repository at this point in the history
…ize in amount of taps
  • Loading branch information
ricovangenugten committed Oct 6, 2016
1 parent 7ba726a commit 12d7db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ int main(int argc, char *argv[])
padded_taps_length = taps_length+(NEON_ALIGNMENT/4)-1 - ((taps_length+(NEON_ALIGNMENT/4)-1)%(NEON_ALIGNMENT/4));
fprintf(stderr,"padded_taps_length = %d\n", padded_taps_length);

taps = (float*) (float*)malloc(padded_taps_length+NEON_ALIGNMENT);
taps = (float*) (float*)malloc((padded_taps_length+NEON_ALIGNMENT)*sizeof(float));
fprintf(stderr,"taps = %x\n", taps);
taps = (float*)((((unsigned)taps)+NEON_ALIGNMENT-1) & ~(NEON_ALIGNMENT-1));
fprintf(stderr,"taps = %x\n", taps);
Expand Down

0 comments on commit 12d7db8

Please sign in to comment.