We usually to constitute an (uin32_t) with 4 (uint8_t)s. or an (uin16_t) with 2 (uint8_t)s. If you not to force type change, there may be overflow. Then you would get the wrong value. Meanwhile elimating the warning catched my the analyzer. Fixes issue #2549. Signed-off-by: yidong0635 <dongx.yi@intel.com> Change-Id: I343a508b52c92475a37e3518022680aede806cb1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13005 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Jun Wen <junx.wen@intel.com> |
||
---|---|---|
.. | ||
bdev_svc | ||
fuzz | ||
histogram_perf | ||
jsoncat | ||
match | ||
stub | ||
Makefile |