ext/digest/xxhash/ext.c in digest-xxhash-0.2.7 vs ext/digest/xxhash/ext.c in digest-xxhash-0.2.9

- old
+ new

@@ -1,7 +1,7 @@ /* - * Copyright (c) 2021 konsolebox + * Copyright (c) 2024 konsolebox * * MIT License * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -640,12 +640,10 @@ _xxh64_reset(_get_state_xxh64(self), decoded_seed); } 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; default: rb_raise(rb_eArgError, "Invalid argument type for 'seed'. " @@ -793,12 +791,10 @@ _xxh3_64bits_reset(_get_state_xxh3_64bits(self), decoded_seed); } 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; default: rb_raise(rb_eArgError, "Invalid argument type for 'seed'. " @@ -980,11 +976,9 @@ _xxh3_128bits_reset(_get_state_xxh3_128bits(self), decoded_seed); } 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; default: rb_raise(rb_eArgError, "Invalid argument type for 'seed'. "