We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent deb7938 commit f10ecdfCopy full SHA for f10ecdf
src/dumper.c
@@ -1123,7 +1123,7 @@ static void lmn_dump_atom_json(LmnSAtom atom)
1123
fprintf(stdout, "\"links\":[");
1124
{
1125
BOOL needs_comma = FALSE;
1126
- for(i = 0, arity = LMN_SATOM_GET_ARITY(atom); i < arity; i++) {
+ for(i = 0, arity = LMN_SATOM_GET_LINK_NUM(atom); i < arity; i++) {
1127
if (needs_comma) fprintf(stdout, ",");
1128
needs_comma = TRUE;
1129
lmn_dump_link_json(atom, i);
@@ -1138,7 +1138,6 @@ static void lmn_dump_mem_json(LmnMembrane *mem)
1138
if (!mem) return;
1139
1140
fprintf(stdout, "{");
1141
-
1142
fprintf(stdout, "\"id\":%d,", (int)lmn_mem_id(mem));
1143
fprintf(stdout, "\"name\":\"%s\",", LMN_MEM_NAME(mem));
1144
fprintf(stdout, "\"atoms\":[");
0 commit comments