Skip to content

Commit

Permalink
More concrete Gadget2 format detector
Browse files Browse the repository at this point in the history
Probably fix #350
  • Loading branch information
islent committed Oct 26, 2021
1 parent e04d83d commit 4be20a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ function detect_gadget2(io)
seek(io, sizeof(Int32)+256)
temp2 = read(io, Int32)
seek(io, pos)
return temp1 == temp2
return temp1 == temp2 == 256
end
add_format(format"Gadget2", detect_gadget2, [".gadget2", ".Gadget2", ".GADGET2"], [:AstroIO => UUID("c85a633c-0c3f-44a2-bffe-7f9d0681b3e7")])

Expand Down

0 comments on commit 4be20a5

Please sign in to comment.