aboutsummaryrefslogtreecommitdiffstats
path: root/src/fig/FIGCarousel.cpp
diff options
context:
space:
mode:
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;