mirror of
https://github.com/simon987/fastimagehash-go.git
synced 2025-04-10 14:16:48 +00:00
Update fastimagehash.go
This commit is contained in:
parent
11d151edcb
commit
b0e9d9b3a7
@ -16,13 +16,13 @@ import (
|
||||
const char* Version = FASTIMAGEHASH_VERSION;
|
||||
|
||||
char *hash_to_hex_string_reversed_wr(void *h, int size) {
|
||||
char *out = malloc(size * 2 + 1);
|
||||
char *out = malloc(size * size / 4 + 1);
|
||||
hash_to_hex_string_reversed((uchar*)h, out, size);
|
||||
return out;
|
||||
}
|
||||
|
||||
char *hash_to_hex_string_wr(void *h, int size) {
|
||||
char *out = malloc(size * 2 + 1);
|
||||
char *out = malloc(size * size / 4 + 1);
|
||||
hash_to_hex_string((uchar*)h, out, size);
|
||||
return out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user