Skip to content

Commit

Permalink
Use correct conversion functions for 64-bit seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
konsolebox committed May 14, 2024
1 parent 91c3f1f commit aac29e2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ext/digest/xxhash/ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,6 @@ static VALUE _Digest_XXH64_reset(int argc, VALUE* argv, VALUE self)

break;
case T_FIXNUM:
_xxh64_reset(_get_state_xxh64(self), FIX2UINT(seed));
break;
case T_BIGNUM:
_xxh64_reset(_get_state_xxh64(self), NUM2ULL(seed));
break;
Expand Down Expand Up @@ -795,8 +793,6 @@ static VALUE _Digest_XXH3_64bits_reset(int argc, VALUE* argv, VALUE self)

break;
case T_FIXNUM:
_xxh3_64bits_reset(_get_state_xxh3_64bits(self), FIX2UINT(seed));
break;
case T_BIGNUM:
_xxh3_64bits_reset(_get_state_xxh3_64bits(self), NUM2ULL(seed));
break;
Expand Down Expand Up @@ -982,8 +978,6 @@ static VALUE _Digest_XXH3_128bits_reset(int argc, VALUE* argv, VALUE self)

break;
case T_FIXNUM:
_xxh3_128bits_reset(_get_state_xxh3_128bits(self), FIX2UINT(seed));
break;
case T_BIGNUM:
_xxh3_128bits_reset(_get_state_xxh3_128bits(self), NUM2ULL(seed));
break;
Expand Down

0 comments on commit aac29e2

Please sign in to comment.