Skip to content

Commit

Permalink
fixed allocation size (pointed out by @JonahBrooks)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar committed Jul 27, 2014
1 parent 8f41663 commit 5304db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poppr_distance.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ double test_bruvo_dist(int *in, int *nall, int *perm, int *woo, int *loss, int *
if (add_indicator == 1)
{
int* short_inds;
short_inds = R_Calloc(zerocatch[miss_ind], int);
short_inds = R_Calloc(p - zerocatch[miss_ind], int);
int short_counter = 0;
for (i = 0; i < p; i++)
{
Expand Down

0 comments on commit 5304db8

Please sign in to comment.