mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-20 13:10:07 -08:00
fix 64-bit bitfield type value evaluation mask/shift
This commit is contained in:
1 parent
fe657987d6
commit
c42e7837ac
2 files changed
+12
-1
No files matched your search
@@ -170,7 +170,7 @@ e_value_eval_from_eval(E_Eval eval)
|
||||
U64 valid_bits_mask = 0;
|
||||
for(U64 idx = 0; idx < type->count; idx += 1)
|
||||
{
|
||||
valid_bits_mask |= (1<<idx);
|
||||
valid_bits_mask |= (1ull<<idx);
|
||||
}
|
||||
eval.value.u64 = eval.value.u64 >> type->off;
|
||||
eval.value.u64 = eval.value.u64 & valid_bits_mask;
|
||||
|
||||
Reference in new issue
Block a user