Skip to content

Commit d39d6de

Browse files
authored
Overload Base.UInt8 explicitly (#188)
1 parent 8a5ea8c commit d39d6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metadata.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using .MaxLengthStrings: MaxLengthString
1717
primitive type ASCIIChar <: AbstractChar 8 end
1818
ASCIIChar(x::UInt8) = reinterpret(ASCIIChar, x)
1919
ASCIIChar(x::Integer) = ASCIIChar(UInt8(x))
20-
UInt8(x::ASCIIChar) = reinterpret(UInt8, x)
20+
Base.UInt8(x::ASCIIChar) = reinterpret(UInt8, x)
2121
Base.codepoint(x::ASCIIChar) = UInt8(x)
2222
Base.show(io::IO, x::ASCIIChar) = print(io, Char(x))
2323
Base.zero(::Union{ASCIIChar,Type{ASCIIChar}}) = ASCIIChar(Base.zero(UInt8))

0 commit comments

Comments
 (0)