We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9f0765 + 61969b8 commit d7b2710Copy full SHA for d7b2710
src/glove.c
@@ -221,7 +221,7 @@ int save_params(int nb_iter) {
221
fid = fopen(vocab_file, "r");
222
sprintf(format,"%%%ds",MAX_STRING_LENGTH);
223
if (fid == NULL) {fprintf(stderr, "Unable to open file %s.\n",vocab_file); return 1;}
224
- if (write_header) fprintf(fout, "%ld %d\n", vocab_size, vector_size);
+ if (write_header) fprintf(fout, "%lld %d\n", vocab_size, vector_size);
225
for (a = 0; a < vocab_size; a++) {
226
if (fscanf(fid,format,word) == 0) return 1;
227
// input vocab cannot contain special <unk> keyword
0 commit comments