diff options
Diffstat (limited to 'library/cpp/digest/old_crc/crc.h')
-rw-r--r-- | library/cpp/digest/old_crc/crc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/digest/old_crc/crc.h b/library/cpp/digest/old_crc/crc.h index 0b99a45a7d..4a3ce6d05e 100644 --- a/library/cpp/digest/old_crc/crc.h +++ b/library/cpp/digest/old_crc/crc.h @@ -79,11 +79,11 @@ namespace NCrcPrivate { #undef DEF_CRC_FUNC } -template <class T> +template <class T> static inline T Crc(const void* buf, size_t len, T init) { return (T)NCrcPrivate::TCrcHelper<8 * sizeof(T)>::Crc(buf, len, init); -} - +} + template <class T> static inline T Crc(const void* buf, size_t len) { return Crc<T>(buf, len, (T)NCrcPrivate::TCrcHelper<8 * sizeof(T)>::Init); |