diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-11-02 13:50:46 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-11-02 13:50:46 +0100 |
commit | 1a04e4ba650099538e7790c1a2f33fe4267831e4 (patch) | |
tree | d843e3906e2ecac1efa2e8d6295868a1d5d694fe /src/fig/FIGCarousel.cpp | |
parent | 3dcd1f0c81e1f7f0c4af779b3ce1eaa4f28b9c39 (diff) | |
download | dabmux-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.cpp | 4 |
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; |