Skip to content

Commit 438e298

Browse files
committed
[ci] fix octave 8/9 error due to map cannot use char key
1 parent ddffb2c commit 438e298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loadjson.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@
766766
end
767767

768768
if usemap
769-
object(str) = val;
769+
object = subsasgn(object, struct('type', '()', 'subs', {{str}}), val);
770770
else
771771
str = encodevarname(str, opt);
772772
if length(str) > 63

0 commit comments

Comments
 (0)