From 82daf53134283c10453ce7912904341ea7b62f0c Mon Sep 17 00:00:00 2001 From: David Plankensteiner Date: Tue, 26 Mar 2019 08:54:28 +0100 Subject: [PATCH] Change Int64 to Int in type checks for x86 --- src/operators.jl | 2 +- src/sortedindices.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/operators.jl b/src/operators.jl index 6d21e427..86317e4e 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -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] diff --git a/src/sortedindices.jl b/src/sortedindices.jl index 27bc7204..9e9ff2d9 100644 --- a/src/sortedindices.jl +++ b/src/sortedindices.jl @@ -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.