pdl: Add u64 or usize suffix to mask_bit output
We already handled the case where the generated integer literal is so large that it doesn’t fit into the default i32 type. This was handled by adding an explicit u64 suffix. However, this produces invalid code if we use the u64 integer in an expression where we actually expect an usize. We now take that into account with an explicit suffix argument. This was found during the integration with UWB. Tag: #feature Bug: 228306436 Test: atest pdl_tests pdl_rust_generator_tests_{le,be} Change-Id: I756a70ad776edfd9732c9bc4c8a0498f4a82defc
Loading
Please register or sign in to comment