Skip to content

Commit 61969b8

Browse files
committed
Fix warning about type mismatch when logging
1 parent e9f0765 commit 61969b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/glove.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ int save_params(int nb_iter) {
221221
fid = fopen(vocab_file, "r");
222222
sprintf(format,"%%%ds",MAX_STRING_LENGTH);
223223
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);
224+
if (write_header) fprintf(fout, "%lld %d\n", vocab_size, vector_size);
225225
for (a = 0; a < vocab_size; a++) {
226226
if (fscanf(fid,format,word) == 0) return 1;
227227
// input vocab cannot contain special <unk> keyword

0 commit comments

Comments
 (0)