Make sure byte-sized tag unions are printed as unions in the repl

Closes #4713
This commit is contained in:
Ayaz Hafiz 2022-12-12 17:55:31 -06:00
parent 4de0c831bd
commit 8bd61d9408
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 13 additions and 1 deletions

View file

@ -565,7 +565,7 @@ fn addr_to_ast<'a, M: ReplAppMemory>(
use IntWidth::*;
match int_width {
U8 => helper!(deref_u8, u8),
U8 => byte_to_ast(env, mem.deref_u8(addr), raw_content),
U16 => helper!(deref_u16, u16),
U32 => helper!(deref_u32, u32),
U64 => helper!(deref_u64, u64),