Skip to content

Commit

Permalink
remove overriding the bitmask when not found in dwarf
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Caron authored and DanielT committed May 20, 2024
1 parent 7e8f91e commit 40f584c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/update/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ pub(crate) fn set_bitmask(opt_bitmask: &mut Option<BitMask>, typeinfo: &TypeInfo
*opt_bitmask = Some(bm);
}
} else {
*opt_bitmask = None;
// if there was a bitmask already configured, it is probably an unexplicit bitfield (a bit
// mask is configured in the a2l, but in the code, it is an integer with hardcoded shift and
// mask), so we should not remove the bitmask from the a2l otherwise the configuration will
// be lost
//*opt_bitmask = None;
}
}

Expand Down

0 comments on commit 40f584c

Please sign in to comment.