Skip to content

Commit f8660e9

Browse files
committed
Small optimisation
1 parent f381566 commit f8660e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void mpr_obj_print(mpr_obj o, int include_props)
415415
return;
416416
}
417417

418-
num_props = mpr_obj_get_num_props(o, 0);
418+
num_props = mpr_tbl_get_num_records(o->props.synced);
419419
for (i = 0; i < num_props; i++) {
420420
p = mpr_tbl_get_record_by_idx(o->props.synced, i, &key, &len, &type, &val, 0);
421421
die_unless(val != 0 || MPR_LIST == type, "returned zero value\n");

0 commit comments

Comments
 (0)