LOAD-TIME-VALUE returned two values when passed two

This commit is contained in:
Juan Jose Garcia Ripoll 2012-02-02 23:19:56 +01:00
parent 2bf38a92fc
commit 974ba01d5c

View file

@ -1606,9 +1606,9 @@ c_leta(cl_env_ptr env, cl_object args, int flags) {
static int
c_load_time_value(cl_env_ptr env, cl_object args, int flags)
{
if (cl_cddr(args) != Cnil)
FEprogram_error_noreturn("LOAD-TIME-VALUE: Too many arguments.", 0);
return c_values(env, args, flags);
if (Null(args) || cl_cddr(args) != Cnil)
FEprogram_error_noreturn("LOAD-TIME-VALUE: Wrong number of arguments.", 0);
return c_values(env, ECL_CONS_CAR(args), flags);
}
static int