diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/ocl/crc_hash.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ocl/crc_hash.hpp b/include/ocl/crc_hash.hpp index 4fe1582..a3da6ba 100644 --- a/include/ocl/crc_hash.hpp +++ b/include/ocl/crc_hash.hpp @@ -92,10 +92,10 @@ namespace ocl } // namespace ocl -inline void -operator""_crc(const char* in, std::size_t len) noexcept +inline std::uint32_t +operator""_crc32(const char* in, std::size_t len) noexcept { - ocl::crc_hash_trait::crc<std::uint32_t>(reinterpret_cast<const char*>(in), strlen(in)); + return ocl::crc_hash_trait::crc<std::uint32_t>(static_cast<const char*>(in), strlen(in)); } namespace std |
