From c8bba562f65d4bcd5d4fc8663650e0b3152ad0d0 Mon Sep 17 00:00:00 2001 From: Niklas Nummelin Date: Wed, 24 Jan 2024 20:23:59 +0100 Subject: [PATCH] Missing OR :) --- physx-sys/pxbind/src/generator/enums.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physx-sys/pxbind/src/generator/enums.rs b/physx-sys/pxbind/src/generator/enums.rs index 1ea964ac..f723bfe4 100644 --- a/physx-sys/pxbind/src/generator/enums.rs +++ b/physx-sys/pxbind/src/generator/enums.rs @@ -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}"); }