Avoid showing sign twice with int, as we handle it

This commit is contained in:
TEC 2024-04-12 16:45:31 +08:00
parent 1305239f01
commit 35aeef29b0
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ function memorylayout(io::IO, value::Union{Int8, Int16, Int32, Int64, Int128})
else
signstr = ifelse(value < 0, '-', '+')
println(io, "\n ", bits, ifelse(sizeof(value) > 4, "\n", ""),
styled" {bold:=} {$(NUMBER_BIT_FACES.sign):$signstr}$value")
styled" {bold:=} {$(NUMBER_BIT_FACES.sign):$signstr}$(abs(value))")
end
end