Skip to content

Commit 278e31c

Browse files
authored
Merge pull request #44 from saolof/patch-1
Add conversion from Symbol to ShortString
2 parents 3db80e8 + ab85c69 commit 278e31c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/base.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ end
113113

114114
ShortString{T}(s::ShortString{T}) where {T} = s
115115

116+
ShortString(s::Symbol) where {T} = ShortString{T}(String(s))
117+
116118
function ShortString{T}(s::ShortString{S}) where {T, S}
117119
sz = sizeof(s)
118120
check_size(T, sz)

0 commit comments

Comments
 (0)