Skip to content

Commit

Permalink
cgen: cleanup gen_jsons() a bit (#23044)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 authored Dec 2, 2024
1 parent c45b8d4 commit b79b4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/json.v
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ ${enc_fn_dec} {
\tcJSON *o;')
if is_js_prim(sym.name) && utyp.is_ptr() {
g.gen_prim_enc_dec(utyp, mut enc, mut dec)
} else if sym.kind == .array || sym.kind == .array_fixed {
} else if sym.kind in [.array, .array_fixed] {
array_size := if sym.kind == .array_fixed {
(sym.info as ast.ArrayFixed).size
} else {
Expand Down

0 comments on commit b79b4bf

Please sign in to comment.