aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-03-22 20:32:35 -0700
committeriximeow <me@iximeow.net>2020-03-22 20:32:35 -0700
commitb134b083d83af133ecc609e46e70e5bfbc445dc2 (patch)
tree227b7141e9dd29df841e1550011de8894879585d
parent7c2fa4fa9caea3fbfcd7d22e5da6b4ccbbfa3d17 (diff)
bump to 0.0.10 to fix a warning0.0.10
-rw-r--r--CHANGELOG4
-rw-r--r--Cargo.toml2
-rw-r--r--src/protected_mode/mod.rs3
3 files changed, 6 insertions, 3 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 029a20e..703f299 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,7 @@
+## 0.0.10
+
+same as 0.0.9, but with a warning fixed.
+
## 0.0.9
added `protected_mode` for 32-bit instruction decoding. BCD instructions not yet supported.
diff --git a/Cargo.toml b/Cargo.toml
index 86cdcb7..4d8c046 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "yaxpeax-x86"
-version = "0.0.9"
+version = "0.0.10"
authors = [ "iximeow <me@iximeow.net>" ]
license = "0BSD"
repository = "http://git.iximeow.net/yaxpeax-x86/"
diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs
index ac7968c..d561fe3 100644
--- a/src/protected_mode/mod.rs
+++ b/src/protected_mode/mod.rs
@@ -4808,8 +4808,7 @@ fn read_operands<T: Iterator<Item=u8>>(decoder: &InstDecoder, mut bytes_iter: T,
1 => OperandSpec::ImmI8,
2 => OperandSpec::ImmI16,
4 => OperandSpec::ImmI32,
- o => unsafe { unreachable!("impossibe op width {}", o) }
-// _ => unsafe { unreachable_unchecked() }
+ o => { unreachable!("impossibe op width {}", o) }
};
instruction.operand_count = 2;
}