diff options
author | iximeow <me@iximeow.net> | 2024-06-23 23:10:32 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2024-06-23 23:20:27 -0700 |
commit | 577b8e89849db33427e4be961997ad7af5e048f1 (patch) | |
tree | e59e0f980174f402d1027e5932d28bd8f8573be1 | |
parent | 25b9a530b3b19b9dcb27b9596df51f43bb272bd8 (diff) |
nightly correctly remarked that == on fat pointers is ambiguous
-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; |