set_flag arg fix

This commit is contained in:
D0A1V2I3D 2023-02-05 17:22:47 +01:00
parent 5f5dee9b95
commit 503f52b60a
No known key found for this signature in database
GPG key ID: 70C7C44D1C3EC16F
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "binf"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
license = "MIT"
description = "A crate that adds utilities for dealing with binary flags"

View file

@ -14,7 +14,7 @@ pub struct Flag {
impl Flag {
/// 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 {
self.value |= 1 << flag;
} else {