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:
parent
9bcd644408
commit
98b83bdc9f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue