From: Paul Eggert Date: Sun, 19 May 2024 15:48:52 +0000 (-0700) Subject: Tweak STORE_NUMBER arg type X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~1424 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=98b83bdc9f4af7798e3314ad8df6ab78efd60f8a;p=emacs.git 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. --- 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 /* 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;