Fixed dhash() prototype
parent
7cf61f43c1
commit
458e832990
|
@ -16,7 +16,7 @@ static inline uint64_t ror64(uint64_t word, unsigned int shift)
|
|||
return (word >> shift) | (word << (64 - shift));
|
||||
}
|
||||
|
||||
uint64_t dhash(char *data, int size);
|
||||
uint64_t dhash(void *data, int size);
|
||||
|
||||
|
||||
#endif //MKSPARSE_HASH_H
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
uint64_t dhash(char *data, int size){
|
||||
uint64_t dhash(void *data, int size){
|
||||
uint64_t *i64 = (uint64_t*)data;
|
||||
char *i8;
|
||||
uint64_t hash = 0xbeefcafe;
|
||||
|
|
Loading…
Reference in New Issue