Skip to content

Commit ee88b23

Browse files
committed
fix: type instability in get_op_name
1 parent d6e4cb8 commit ee88b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Strings.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function dispatch_op_name(::Val{deg}, operators::AbstractOperatorEnum, idx) wher
1919
end
2020
end
2121

22-
OP_NAME_CACHE = (; x=Dict{UInt64,Vector{Char}}(), lock=Threads.SpinLock())
22+
const OP_NAME_CACHE = (; x=Dict{UInt64,Vector{Char}}(), lock=Threads.SpinLock())
2323

2424
function get_op_name(op)
2525
h = hash(op)

0 commit comments

Comments
 (0)