From b8689dbc7446e11c84dfbbf851e49d72859296ac Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 9 Oct 2021 09:45:32 -0700 Subject: ffi: insufficient format args in enum error handling. * ffi.c (make_ffi_type_enum): Add missing argument to two uw_throwf calls. Reported by Paul A. Patience. --- ffi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffi.c b/ffi.c index cf628de8..07feab41 100644 --- a/ffi.c +++ b/ffi.c @@ -3663,13 +3663,13 @@ static val make_ffi_type_enum(val syntax, val enums, if (!integerp(n)) { uw_throwf(error_s, lit("~a: ~s member ~s value ~s not integer"), - self, syntax, n, nao); + self, syntax, sym, n, nao); } cur = c_num(n, self); if (cur > INT_MAX) uw_throwf(error_s, lit("~a: ~s member ~s value ~s too large"), - self, syntax, n, nao); + self, syntax, sym, n, nao); sethash(num_sym, sym, nn = num(cur)); sethash(sym_num, nn, sym); env_vbind(enum_env, sym, nn); -- cgit v1.2.3