diff options
-rw-r--r-- | src/shared/evex.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/evex.in b/src/shared/evex.in index a43a97e..0aa7d95 100644 --- a/src/shared/evex.in +++ b/src/shared/evex.in @@ -173,7 +173,7 @@ pub(crate) fn read_evex< let opc = words.next().ok().ok_or(DecodeError::ExhaustedInput)?; let table_idx = ((m << 2) | p) as usize; let table = generated::TABLES[table_idx]; - if table as *const [_] == &generated::DUMMY[..] as *const [_] { + if core::ptr::eq(table as *const [_], &generated::DUMMY[..] as *const [_]) { return Err(DecodeError::InvalidOpcode); } let mut index_lower = 0; |