Skip to content

Commit edceee4

Browse files
committed
fix for u128
1 parent bfc3db1 commit edceee4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use {
4040
};
4141

4242
#[derive(Debug, PartialEq, Clone, Copy)]
43-
enum Variant { Value55, ValueAA }
43+
enum Variant { Value55, ValueAA }
4444

4545
impl Default for Variant {
4646
fn default() -> Self { Variant::Value55 }

bitwrap_derive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitwrap_derive"
3-
version = "2.0.0"
3+
version = "2.0.1"
44
authors = ["Cesbo Developers Team"]
55
description = "macro for bitwrap"
66
documentation = "https://docs.rs/bitwrap"

bitwrap_derive/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ impl BitWrapMacro {
205205
_ => panic!("bitfield argument #1 has wrong type")
206206
};
207207

208-
if bits == 0 || bits > 64 {
209-
panic!("bitfield argument #1 should be a number in range 1 .. 64");
208+
if bits == 0 || bits > 128 {
209+
panic!("bitfield argument #1 should be a number in range 1 ..= 128");
210210
}
211211

212212
let mut field_name = TokenStream::new();

0 commit comments

Comments
 (0)