Skip to content

Commit

Permalink
Missing OR :)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasNummelin committed Jan 24, 2024
1 parent 4058eec commit c8bba56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physx-sys/pxbind/src/generator/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl<'ast> crate::consumer::FlagsBinding<'ast> {
}
else if remainder != 0 {
if remainder & (remainder - 1) == 0 {
writes!(w, "1 << {}", remainder.ilog2());
writes!(w, "| 1 << {}", remainder.ilog2());
} else {
writes!(w, "| 0x{remainder:08x}");
}
Expand Down

0 comments on commit c8bba56

Please sign in to comment.