Skip to content

Commit 05477e3

Browse files
committed
Fixed incorrect use of fill when creating default message vectors
1 parent dcff65e commit 05477e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gentypes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ function _addtypemember!(exprs, namestr, typestr)
504504
namesym = symbol(namestr)
505505
if arraylen >= 0
506506
memexpr = :($namesym::Array{$j_typ,1})
507-
defexpr = Expr(:call, :fill, j_def, arraylen)
507+
defexpr = :([$j_def for i = 1:$arraylen])
508508
jlconexpr = :(jl.$namesym = convert(Array{$j_typ,1}, o[$namestr]))
509509

510510
#uint8[] is string in rospy and PyCall's conversion to bytearray is

0 commit comments

Comments
 (0)