Skip to content

Commit

Permalink
Fix swapping of >>= and <<= in constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwe committed Jun 22, 2023
1 parent e9e88b0 commit b164234
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Unreleased

* Fix swapping of `>>=` and `<<=` in constants.

## 0.24.6 (YANKED: depfile option was breaking, see #841)

* Update MSRV to 1.57
Expand Down
4 changes: 2 additions & 2 deletions src/bindgen/ir/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ impl Literal {
syn::BinOp::BitXorEq(..) => "^=",
syn::BinOp::BitAndEq(..) => "&=",
syn::BinOp::BitOrEq(..) => "|=",
syn::BinOp::ShlEq(..) => ">>=",
syn::BinOp::ShrEq(..) => "<<=",
syn::BinOp::ShlEq(..) => "<<=",
syn::BinOp::ShrEq(..) => ">>=",
};
Ok(Literal::BinOp {
left: Box::new(l),
Expand Down

0 comments on commit b164234

Please sign in to comment.