diff options
Diffstat (limited to 'src/testing.c')
-rw-r--r-- | src/testing.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing.c b/src/testing.c index ac9beea435..3ab9dcdc90 100644 --- a/src/testing.c +++ b/src/testing.c @@ -758,9 +758,10 @@ f_test_refcount(typval_T *argvars, typval_T *rettv) switch (argvars[0].v_type) { case VAR_UNKNOWN: + case VAR_VOID: case VAR_NUMBER: - case VAR_FLOAT: case VAR_BOOL: + case VAR_FLOAT: case VAR_SPECIAL: case VAR_STRING: break; @@ -781,7 +782,7 @@ f_test_refcount(typval_T *argvars, typval_T *rettv) { ufunc_T *fp; - fp = find_func(argvars[0].vval.v_string); + fp = find_func(argvars[0].vval.v_string, NULL); if (fp != NULL) retval = fp->uf_refcount; } |