set_flag arg fix
This commit is contained in:
parent
5f5dee9b95
commit
503f52b60a
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "binf"
|
name = "binf"
|
||||||
version = "0.2.2"
|
version = "0.2.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "A crate that adds utilities for dealing with binary flags"
|
description = "A crate that adds utilities for dealing with binary flags"
|
||||||
|
|
|
@ -14,7 +14,7 @@ pub struct Flag {
|
||||||
|
|
||||||
impl Flag {
|
impl Flag {
|
||||||
/// set a flag value
|
/// set a flag value
|
||||||
pub fn set_flag(&mut self, flag: u32, value: bool) {
|
pub fn set_flag(&mut self, flag: u128, value: bool) {
|
||||||
if value {
|
if value {
|
||||||
self.value |= 1 << flag;
|
self.value |= 1 << flag;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue