Skip to content

Commit

Permalink
fix: rewriting with PrefixAutomaton
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmarek committed Jul 30, 2024
1 parent 7bbe608 commit 2819bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rewriting.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
RewritingBuffer{T}(::Any) where {T} = RewritingBuffer{T}() # no history
RewritingBuffer{T}(::IndexAutomaton{S}) where {T,S} = RewritingBuffer{T}(S[])
function RewritingBuffer{T}(::PrefixAutomaton{S}) where {T,S}
return RewritingBuffer{T}(PackedVector{S}())
function RewritingBuffer{T}(::PrefixAutomaton) where {T,S}
return RewritingBuffer{T}(PackedVector{UInt32}())
end

"""
Expand Down

0 comments on commit 2819bbd

Please sign in to comment.