We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66aeb9b commit f8a8b9bCopy full SHA for f8a8b9b
src/io/XDRIO.jl
@@ -10,7 +10,7 @@ end
10
11
readint32(io::XDRIO) = ntoh(read(io.sub, Int32))
12
readuint32(io::XDRIO) = ntoh(read(io.sub, UInt32))
13
-readfloat64(io::XDRIO) = reinterpret(Float64, ntoh(read(io.sub, Int64)))
+readfloat64(io::XDRIO) = ntoh(read(io.sub, Float64))
14
15
readintorNA(io::XDRIO) = readint32(io)
16
function readintorNA(io::XDRIO, n::RVecLength)
@@ -22,8 +22,8 @@ end
22
# R's NA is silently converted to NaN when the value is loaded in the register(?)
23
#readfloatorNA(io::XDRIO) = readfloat64(io)
24
function readfloatorNA(io::XDRIO, n::RVecLength)
25
- v = read(io.sub, UInt64, n)
26
- reinterpret(Float64, map!(ntoh, v, v))
+ v = read(io.sub, Float64, n)
+ map!(ntoh, v, v)
27
end
28
29
readuint8(io::XDRIO, n::RVecLength) = read(io.sub, UInt8, n)
0 commit comments