aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig/FIGCarousel.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-02 13:50:46 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-02 13:50:46 +0100
commit1a04e4ba650099538e7790c1a2f33fe4267831e4 (patch)
treed843e3906e2ecac1efa2e8d6295868a1d5d694fe /src/fig/FIGCarousel.cpp
parent3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39 (diff)
downloaddabmux-1a04e4ba650099538e7790c1a2f33fe4267831e4.tar.gz
dabmux-1a04e4ba650099538e7790c1a2f33fe4267831e4.tar.bz2
dabmux-1a04e4ba650099538e7790c1a2f33fe4267831e4.zip
Fix a couple of static check warnings
Diffstat (limited to 'src/fig/FIGCarousel.cpp')
-rw-r--r--src/fig/FIGCarousel.cpp4
1 files changed, 2 insertions, 2 deletions
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;