Skip to content

Commit

Permalink
Change Int64 to Int in type checks for x86
Browse files Browse the repository at this point in the history
  • Loading branch information
david-pl committed Mar 26, 2019
1 parent a514ee7 commit 82daf53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function embed(basis_l::CompositeBasis, basis_r::CompositeBasis,
@assert length(indices) == length(operators)

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

Expand Down
4 changes: 2 additions & 2 deletions src/sortedindices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ function check_embed_indices(indices::Array)
# Check whether `indices` is empty.
(length(indices) == 0) ? (return true) : nothing

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

isunique = true
# Check that no sub-list contains duplicates.
Expand Down

0 comments on commit 82daf53

Please sign in to comment.