Skip to content

Commit

Permalink
Address missed API change in writedata
Browse files Browse the repository at this point in the history
  • Loading branch information
halleysfifthinc committed Aug 13, 2024
1 parent 59c972b commit a7e9ead
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/testutils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ function comparedata(fn)
refdata = read(fio)
seek(fio, datastart)

format = f.groups[:POINT][Float32, :SCALE] > 0 ? Int16 : eltype(endianness(f))::Type
ref = C3D.readdata(fio, f.header, f.groups, format)
T = f.groups[:POINT][Float32, :SCALE] > 0 ? Int16 : eltype(endianness(f))::Type
ref = C3D.readdata(fio, f.header, f.groups, T)

compio = IOBuffer()
nb = C3D.writedata(compio, f)
nb = C3D.writedata(compio, f, T)
compdata = take!(copy(compio))

seekstart(compio)
comp = C3D.readdata(compio, C3D.Header(f), f.groups, format)
comp = C3D.readdata(compio, C3D.Header(f), f.groups, T)

return (refdata, ref), (compdata, comp)
end
Expand Down

0 comments on commit a7e9ead

Please sign in to comment.