Skip to content

Commit c2fc1dd

Browse files
fangqclaude
andcommitted
[jdata4] _ArrayChunks_ always stored as array (was scalar for 1-D case)
Spec requires a 1-D integer array; storing a scalar failed schema validation for the unchunked 1-D case. Change chunklen → [chunklen] so the JSON output is always [...] regardless of chunking dimension. Decoder already used numel()==1 so no decoder change needed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7e29c45 commit c2fc1dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jdataencode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@
508508
zipchunks{ci} = char(base64encode(zipchunks{ci}));
509509
end
510510
end
511-
newitem.(opt.N_ArrayChunks) = chunklen;
511+
newitem.(opt.N_ArrayChunks) = [chunklen];
512512
newitem.(opt.N_ArrayZipSize) = nelem;
513513
newitem.(opt.N_ArrayZipData) = zipchunks;
514514
else

0 commit comments

Comments
 (0)