Skip to content

Commit

Permalink
check OS in build script, 32 bit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gp0 committed Mar 24, 2015
1 parent e7d334b commit b75af8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
run(`sudo apt-get install mafft`)
run(`sudo apt-get install python-biopython`)
using BinDeps

@linux_only begin
run(`sudo apt-get install mafft`)

This comment has been minimized.

Copy link
@hng

hng Mar 25, 2015

Owner

Linux != Debian ;)

run(`sudo apt-get install python-biopython`)
end
4 changes: 2 additions & 2 deletions src/KABSCH/kabsch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export calc_centroid, kabsch, rotate, rmsd, translate_points, kabsch_rmsd
RMSD::Float64 = 0.0

# D pairs of equivalent atoms
D::Int64 = size(A)[1]::Int64
D::Int64 = size(A)[1]::Int32 # <- oddly _only_ changing this to Int32 makes it work on 32-bit systems.
# N coordinates
N::Int64 = length(A)::Int64
N::Int64 = length(A)::Int32

for i::Int64 = 1:N
RMSD += (A[i]::Float64 - B[i]::Float64)^2
Expand Down

0 comments on commit b75af8d

Please sign in to comment.