diff options
| author | Paul Eggert | 2024-05-19 08:48:52 -0700 |
|---|---|---|
| committer | Paul Eggert | 2024-05-19 08:58:15 -0700 |
| commit | 98b83bdc9f4af7798e3314ad8df6ab78efd60f8a (patch) | |
| tree | 554837d2de819b5ebe8c8453cc0f7a6b749e0e15 /src | |
| parent | 9bcd644408367b1d57e62a7f73b4ef4a3cd366b4 (diff) | |
| download | emacs-98b83bdc9f4af7798e3314ad8df6ab78efd60f8a.tar.gz emacs-98b83bdc9f4af7798e3314ad8df6ab78efd60f8a.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex-emacs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex-emacs.c b/src/regex-emacs.c index 0ec0c6eb63f..92dbdbecbf1 100644 --- a/src/regex-emacs.c +++ b/src/regex-emacs.c | |||
| @@ -341,7 +341,7 @@ typedef enum | |||
| 341 | /* Store NUMBER in two contiguous bytes starting at DESTINATION. */ | 341 | /* Store NUMBER in two contiguous bytes starting at DESTINATION. */ |
| 342 | 342 | ||
| 343 | static void | 343 | static void |
| 344 | STORE_NUMBER (unsigned char *destination, int16_t number) | 344 | STORE_NUMBER (unsigned char *destination, int number) |
| 345 | { | 345 | { |
| 346 | (destination)[0] = (number) & 0377; | 346 | (destination)[0] = (number) & 0377; |
| 347 | (destination)[1] = (number) >> 8; | 347 | (destination)[1] = (number) >> 8; |