diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /library/cpp/digest/old_crc/crc.h | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 of 2.
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 4a3ce6d05e..0b99a45a7d 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); |