Subject: bug#48133: 28.0.50; [native-comp] time-to-days throws wrong-number-of-arguments error

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 02 May 2021 09:18:47 +0200

Ihor Radchenko <[email-masked]> writes:

> I just got the following error trying to run native-compiled time-to-days:
>
> Debugger entered--Lisp error: (wrong-number-of-arguments (lambda (&optional time) (funcall #<subr decode-time> (or time G167))) 3)
>   (decode-time (22352 22528) nil nil)
>   (time-to-days (22352 22528))
>
> Re-evaluating defun of time-to-days fixes the error.

I'm just taking a stab in the dark here -- but it's really odd that it
seems to say that the signature of `decode-time' is

(&optional time)

Is it possible that the test code is mocking/redefining `decode-time'
with the wrong signature, or something along those lines?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no