Skip to content

Commit 82daf53

Browse files
committed
Change Int64 to Int in type checks for x86
1 parent a514ee7 commit 82daf53

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/operators.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function embed(basis_l::CompositeBasis, basis_r::CompositeBasis,
104104
@assert length(indices) == length(operators)
105105

106106
# Embed all single-subspace operators.
107-
idxop_sb = [x for x in zip(indices, operators) if typeof(x[1]) <: Int64]
107+
idxop_sb = [x for x in zip(indices, operators) if typeof(x[1]) <: Int]
108108
indices_sb = [x[1] for x in idxop_sb]
109109
ops_sb = [x[2] for x in idxop_sb]
110110

src/sortedindices.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ function check_embed_indices(indices::Array)
186186
# Check whether `indices` is empty.
187187
(length(indices) == 0) ? (return true) : nothing
188188

189-
err_str = "Variable `indices` comes in an unexpected form. Expecting `Array{Union{Int64, Array{Int64, 1}}, 1}`"
190-
@assert mapreduce(x -> typeof(x)<:Array || typeof(x)<:Int64, &, indices) err_str
189+
err_str = "Variable `indices` comes in an unexpected form. Expecting `Array{Union{Int, Array{Int, 1}}, 1}`"
190+
@assert mapreduce(x -> typeof(x)<:Array || typeof(x)<:Int, &, indices) err_str
191191

192192
isunique = true
193193
# Check that no sub-list contains duplicates.

0 commit comments

Comments
 (0)