Tweak STORE_NUMBER arg type

* src/regex-emacs.c (STORE_NUMBER): Make the arg int, not int16_t.
There’s no need for the caller to convert to int16_t, and using
int makes the machine code a bit smaller (and presumably a bit
faster) on x86-64 with GCC 14.
This commit is contained in:
Paul Eggert 2024-05-19 08:48:52 -07:00
parent 9bcd644408
commit 98b83bdc9f

View file

@ -341,7 +341,7 @@ typedef enum
/* Store NUMBER in two contiguous bytes starting at DESTINATION. */
static void
STORE_NUMBER (unsigned char *destination, int16_t number)
STORE_NUMBER (unsigned char *destination, int number)
{
(destination)[0] = (number) & 0377;
(destination)[1] = (number) >> 8;