diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-01-12 00:21:18 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-12 00:21:18 -0700 |
| commit | 1b483c2cb47e2f64726e1bbb0923a4fa40ac8126 (patch) | |
| tree | cf52190dbe8a58633e1c074d3ee5f560c9d92e24 /vis-operators.c | |
| parent | 0f31ef53420b755c3978818bcd2e5a86e141413d (diff) | |
| download | vis-1b483c2cb47e2f64726e1bbb0923a4fa40ac8126.tar.gz vis-1b483c2cb47e2f64726e1bbb0923a4fa40ac8126.tar.xz | |
array: delete oneliners
same as buffer commit Array is completely visible
Diffstat (limited to 'vis-operators.c')
| -rw-r--r-- | vis-operators.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
