commit | 5deb2f6ad969a3c982438006586c10ffcf496afd | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Dec 01 13:21:14 2017 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Fri Dec 01 13:21:14 2017 +0100 |
tree | 8f4036cd844b42a6b76b8a6833b8067debe87382 | |
parent | 2f6b74ade2696d4e0312647f2c1ee954c32d2919 [diff] |
w2v-server: fix collocator malloc
diff --git a/w2v-server.pl b/w2v-server.pl index 9c02dc4..5792893 100755 --- a/w2v-server.pl +++ b/w2v-server.pl
@@ -655,7 +655,7 @@ int syn_threads = (M2? window * 2 : 0); int para_threads = num_threads - syn_threads; - collocator *best = malloc(MAX_NEIGHBOURS * sizeof(collocator)); + collocator *best = malloc(10*MAX_NEIGHBOURS * sizeof(collocator)); if(N>MAX_NEIGHBOURS) N=MAX_NEIGHBOURS;