From 1a04e4ba650099538e7790c1a2f33fe4267831e4 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 2 Nov 2020 13:50:46 +0100 Subject: Fix a couple of static check warnings --- src/fig/FIGCarousel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fig') diff --git a/src/fig/FIGCarousel.cpp b/src/fig/FIGCarousel.cpp index c791364..f48b62c 100644 --- a/src/fig/FIGCarousel.cpp +++ b/src/fig/FIGCarousel.cpp @@ -198,8 +198,8 @@ size_t FIGCarousel::write_fibs( CRCtmp ^= 0xffff; buf += 30; - *(buf++) = ((char *) &CRCtmp)[1]; - *(buf++) = ((char *) &CRCtmp)[0]; + *(buf++) = (CRCtmp >> 8) & 0x00FF; + *(buf++) = CRCtmp & 0x00FF; } return 32 * fibCount; -- cgit v1.2.3