Skip to content

Commit c130f1d

Browse files
committed
Even fewer bytes allocated.
1 parent 685606d commit c130f1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/UDF.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ function stepfunc(init, func, fsym=symbol(string(func)*"_step"))
120120
intsize
121121
)
122122
# copy the address of the pointer to the serialized value
123-
for (i, byte) in enumerate(reinterpret(UInt8, [valptr]))
124-
unsafe_store!(acptr, byte, intsize+i)
123+
valarr = reinterpret(UInt8, [valptr])
124+
for i in 1:length(valarr)
125+
unsafe_store!(acptr, a[i], intsize+i)
125126
end
126127
catch
127128
# TODO:

0 commit comments

Comments
 (0)