Skip to content

Commit b79b4bf

Browse files
authored
cgen: cleanup gen_jsons() a bit (#23044)
1 parent c45b8d4 commit b79b4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/gen/c/json.v

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ ${enc_fn_dec} {
139139
\tcJSON *o;')
140140
if is_js_prim(sym.name) && utyp.is_ptr() {
141141
g.gen_prim_enc_dec(utyp, mut enc, mut dec)
142-
} else if sym.kind == .array || sym.kind == .array_fixed {
142+
} else if sym.kind in [.array, .array_fixed] {
143143
array_size := if sym.kind == .array_fixed {
144144
(sym.info as ast.ArrayFixed).size
145145
} else {

0 commit comments

Comments
 (0)