From 1b483c2cb47e2f64726e1bbb0923a4fa40ac8126 Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Sun, 12 Jan 2025 00:21:18 -0700 Subject: array: delete oneliners same as buffer commit Array is completely visible --- vis-operators.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-operators.c') diff --git a/vis-operators.c b/vis-operators.c index 6b7f873..123d126 100644 --- a/vis-operators.c +++ b/vis-operators.c @@ -229,7 +229,7 @@ int vis_operator_register(Vis *vis, VisOperatorFunction *func, void *context) { op->func = func; op->context = context; if (array_add_ptr(&vis->operators, op)) - return VIS_OP_LAST + array_length(&vis->operators) - 1; + return VIS_OP_LAST + vis->operators.len - 1; free(op); return -1; } -- cgit v1.2.3