Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e7849d25 authored by Martin Geisler's avatar Martin Geisler
Browse files

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
parent d16411ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment