From: Paul Eggert Date: Tue, 9 Aug 2016 07:35:13 +0000 (-0700) Subject: Get BYTE_CODE_METER working again X-Git-Tag: emacs-26.0.90~1769 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=846e88eb99ddb66f0a949d17a0483a977d748305;p=emacs.git Get BYTE_CODE_METER working again BYTE_CODE_METER hasn’t worked since 2013, and nobody seems to have noticed. Perhaps we should remove it? * src/bytecode.c (METER_2) [BYTE_CODE_METER]: Use *aref_addr instead of AREF, since it needs to be an lvalue. --- diff --git a/src/bytecode.c b/src/bytecode.c index 6ccad469efa..ff436533e4c 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -53,7 +53,8 @@ along with GNU Emacs. If not, see . */ #ifdef BYTE_CODE_METER -#define METER_2(code1, code2) AREF (AREF (Vbyte_code_meter, code1), code2) +#define METER_2(code1, code2) \ + (*aref_addr (AREF (Vbyte_code_meter, code1), code2)) #define METER_1(code) METER_2 (0, code) #define METER_CODE(last_code, this_code) \