aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-01-01 10:18:53 -0500
committerJack Lloyd <[email protected]>2016-01-01 10:18:53 -0500
commit48373ed56c5553a5b0be95cd945a12a6684c4afe (patch)
tree7b6a05b7fa7f2bd654babf0e558c65ed88c88e2a /src/lib
parent7583a2a882f4c9d71d947db853c266394f3ca760 (diff)
Add cast to a suspcious looking (but actually ok in this case) shift in MARS
j is never more than 30 in this loop
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/block/mars/mars.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/block/mars/mars.cpp b/src/lib/block/mars/mars.cpp
index becbbf2db..1c41134d3 100644
--- a/src/lib/block/mars/mars.cpp
+++ b/src/lib/block/mars/mars.cpp
@@ -216,7 +216,7 @@ u32bit gen_mask(u32bit input)
if(value == 0 || value == 0x3FF)
{
- mask |= 1 << j;
+ mask |= static_cast<u32bit>(1) << j;
break;
}
}