hash: explicit casts for truncation in CRC32c
authorAndy Green <andy@warmcat.com>
Sat, 12 May 2018 02:00:37 +0000 (10:00 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 20:45:37 +0000 (22:45 +0200)
commitc981825388f81fb191f5a79c80adf0fdb074e584
tree5b1948cb8802f8774dd2a9f016913f92f3f05a97
parentf1eb05a1dc64e17bb9d9b6ad29b78f181aae36b8
hash: explicit casts for truncation in CRC32c

In function 'crc32c_sse42_u64_mimic':
rte_hash_crc.h:402:40:
warning: conversion from 'uint64_t' {aka 'long unsigned int'}
to 'uint32_t' {aka 'unsigned int'} may change value [-Wconversion]
  init_val = crc32c_sse42_u32(d.u32[0], init_val);

Fixes: 00bf774bab0b ("hash: add assembly implementation of CRC32 intrinsics")
Cc: stable@dpdk.org
Signed-off-by: Andy Green <andy@warmcat.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_hash/rte_hash_crc.h