From 577b8e89849db33427e4be961997ad7af5e048f1 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 23 Jun 2024 23:10:32 -0700 Subject: nightly correctly remarked that == on fat pointers is ambiguous --- src/shared/evex.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.1