From: Paul Eggert Date: Sun, 19 May 2024 15:48:52 +0000 (-0700) Subject: Tweak STORE_NUMBER arg type X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=240c7c131bdbac494e1e954fbbffb957dcbbcd7f;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. (cherry picked from commit 98b83bdc9f4af7798e3314ad8df6ab78efd60f8a) --- 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;