Skip to content

Commit 01a68cf

Browse files
committed
FIX: compiler warnings
1 parent 6956360 commit 01a68cf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/core/u-xxhash.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{
5353
// d is data, n is length
5454
XXH64_hash_t const hash = XXH3_64bits(d, n);
55-
XXH64_canonicalFromHash(md, hash);
55+
XXH64_canonicalFromHash((XXH64_canonical_t *)md, hash);
5656
return md;
5757
}
5858
/***********************************************************************
@@ -62,7 +62,7 @@
6262
***********************************************************************/
6363
{
6464
XXH32_hash_t const hash = XXH32(d, n, 0);
65-
XXH32_canonicalFromHash(md, hash);
65+
XXH32_canonicalFromHash((XXH32_canonical_t *)md, hash);
6666
return md;
6767
}
6868
/***********************************************************************
@@ -73,7 +73,7 @@
7373
{
7474
// d is data, n is length
7575
XXH64_hash_t const hash = XXH64(d, n, 0);
76-
XXH64_canonicalFromHash(md, hash);
76+
XXH64_canonicalFromHash((XXH64_canonical_t *)md, hash);
7777
return md;
7878
}
7979
/***********************************************************************
@@ -84,7 +84,7 @@
8484
{
8585
// d is data, n is length
8686
XXH128_hash_t const hash = XXH128(d, n, 0);
87-
XXH128_canonicalFromHash(md, hash);
87+
XXH128_canonicalFromHash((XXH128_canonical_t *)md, hash);
8888
return md;
8989
}
9090
int XXH3_CtxSize(void) { return sizeof(XXH3_state_t); }
@@ -103,10 +103,10 @@ void XXH3_Update( XXH3_state_t *ctx,
103103
XXH3_64bits_update( ctx, input, ilen );
104104
}
105105
void XXH3_Finish(XXH3_state_t*ctx,
106-
unsigned char output[64] )
106+
unsigned char output[8] )
107107
{
108108
XXH64_hash_t const hash = XXH3_64bits_digest(ctx);
109-
XXH64_canonicalFromHash(output, hash);
109+
XXH64_canonicalFromHash((XXH64_canonical_t *)output, hash);
110110
}
111111

112112
void XXH32_Starts( XXH32_state_t *ctx )
@@ -121,10 +121,10 @@ void XXH32_Update( XXH32_state_t *ctx,
121121
XXH32_update( ctx, input, ilen );
122122
}
123123
void XXH32_Finish(XXH32_state_t*ctx,
124-
unsigned char output[64] )
124+
unsigned char output[4] )
125125
{
126126
XXH32_hash_t const hash = XXH32_digest(ctx);
127-
XXH32_canonicalFromHash(output, hash);
127+
XXH32_canonicalFromHash((XXH32_canonical_t *)output, hash);
128128
}
129129

130130
void XXH64_Starts( XXH64_state_t *ctx )
@@ -139,10 +139,10 @@ void XXH64_Update( XXH64_state_t *ctx,
139139
XXH64_update( ctx, input, ilen );
140140
}
141141
void XXH64_Finish(XXH64_state_t*ctx,
142-
unsigned char output[64] )
142+
unsigned char output[8] )
143143
{
144144
XXH64_hash_t const hash = XXH64_digest(ctx);
145-
XXH64_canonicalFromHash(output, hash);
145+
XXH64_canonicalFromHash((XXH64_canonical_t *)output, hash);
146146
}
147147

148148
void XXH128_Starts( XXH3_state_t *ctx )

0 commit comments

Comments
 (0)