aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorKen Raeburn2002-07-16 15:48:47 +0000
committerKen Raeburn2002-07-16 15:48:47 +0000
commit46e7e6b0bd41d70c2fe99f9c41e0478a107e1aac (patch)
treed1b8d6602113edb2d1ce0a02088a459f003f5595 /src/alloc.c
parent674537ea645b5301c288d9b64fc7a1de48fc6e63 (diff)
downloademacs-46e7e6b0bd41d70c2fe99f9c41e0478a107e1aac.tar.gz
emacs-46e7e6b0bd41d70c2fe99f9c41e0478a107e1aac.zip
* alloc.c (make_event_array): Use SSET for storing into a string.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 80b63345459..470cb9277bb 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -2701,10 +2701,10 @@ make_event_array (nargs, args)
2701 result = Fmake_string (make_number (nargs), make_number (0)); 2701 result = Fmake_string (make_number (nargs), make_number (0));
2702 for (i = 0; i < nargs; i++) 2702 for (i = 0; i < nargs; i++)
2703 { 2703 {
2704 SREF (result, i) = XINT (args[i]); 2704 SSET (result, i, XINT (args[i]));
2705 /* Move the meta bit to the right place for a string char. */ 2705 /* Move the meta bit to the right place for a string char. */
2706 if (XINT (args[i]) & CHAR_META) 2706 if (XINT (args[i]) & CHAR_META)
2707 SREF (result, i) |= 0x80; 2707 SSET (result, i, SREF (result, i) | 0x80);
2708 } 2708 }
2709 2709
2710 return result; 2710 return result;