Skip to content

Commit

Permalink
fix possible type mismatch in bl_enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Apr 16, 2019
1 parent af4066a commit 758f6a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blend2d"
version = "0.1.0"
version = "0.1.1"
authors = ["Lukas Wirth <[email protected]>"]
edition = "2018"
description = "Rust bindings for blend2d"
Expand Down
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ macro_rules! bl_enum {
#[derive(Copy, Clone, Debug, PartialEq, PartialOrd)]
$vis enum $name {
$(
$variant = $value,
$variant = $value as i32,
)*
}
impl From<u32> for $name {
Expand Down

0 comments on commit 758f6a9

Please sign in to comment.