Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/cpp/shared/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <unistd.h>

int fvec_fwrite(FILE* fo, const float* v, uint32_t d) {
int ret;
size_t ret;
ret = fwrite(&d, sizeof(uint32_t), 1, fo);
if (ret != 1) {
perror("fvec_fwrite: write error 1");
Expand Down Expand Up @@ -57,7 +57,7 @@ int fvecs_write(const char* fname, uint32_t d, int n, const float* vf) {
}

int ivec_iwrite(FILE* fo, const uint32_t* v, uint32_t d) {
int ret;
size_t ret;
ret = fwrite(&d, sizeof(uint32_t), 1, fo);
if (ret != 1) {
perror("ivec_iwrite: write error 1");
Expand Down
Loading