mirror of
https://github.com/simon987/fastimagehash.git
synced 2025-04-04 09:23:00 +00:00
Update fastimagehash.cpp
This commit is contained in:
parent
1d56ddeca8
commit
1e0b41f592
@ -94,7 +94,7 @@ void *load_file_in_mem(const char *filepath, size_t *size) {
|
||||
}
|
||||
|
||||
void *buf = malloc(info.st_size);
|
||||
fread(buf, sizeof(char), info.st_size, file);
|
||||
size_t _ = fread(buf, sizeof(char), info.st_size, file);
|
||||
|
||||
*size = info.st_size;
|
||||
return buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user