aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 15:53:00 +0000
committerKarl Heuer1994-10-04 15:53:00 +0000
commitad17573af1708d78c635c40bd2a1c8db3364c6a4 (patch)
tree08287a9bbc269315461d738fd1b07eb7bf9567ff /src
parent2acfd7ae4938d238bc534fbc76211acf37b3d963 (diff)
downloademacs-ad17573af1708d78c635c40bd2a1c8db3364c6a4.tar.gz
emacs-ad17573af1708d78c635c40bd2a1c8db3364c6a4.zip
(Flength, concat, mapcar1): Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fns.c b/src/fns.c
index 60ab95f5cfe..3f678439be9 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -111,12 +111,12 @@ A byte-code function object is also allowed.")
111 tail = Fcdr (tail); 111 tail = Fcdr (tail);
112 } 112 }
113 113
114 XFASTINT (val) = i; 114 XSETFASTINT (val, i);
115 return val; 115 return val;
116 } 116 }
117 else if (NILP(obj)) 117 else if (NILP(obj))
118 { 118 {
119 XFASTINT (val) = 0; 119 XSETFASTINT (val, 0);
120 return val; 120 return val;
121 } 121 }
122 else 122 else
@@ -305,7 +305,7 @@ concat (nargs, args, target_type, last_special)
305 leni += XFASTINT (len); 305 leni += XFASTINT (len);
306 } 306 }
307 307
308 XFASTINT (len) = leni; 308 XSETFASTINT (len, leni);
309 309
310 if (target_type == Lisp_Cons) 310 if (target_type == Lisp_Cons)
311 val = Fmake_list (len, Qnil); 311 val = Fmake_list (len, Qnil);
@@ -355,7 +355,7 @@ concat (nargs, args, target_type, last_special)
355 { 355 {
356 if (thisindex >= thisleni) break; 356 if (thisindex >= thisleni) break;
357 if (STRINGP (this)) 357 if (STRINGP (this))
358 XFASTINT (elt) = XSTRING (this)->data[thisindex++]; 358 XSETFASTINT (elt, XSTRING (this)->data[thisindex++]);
359 else 359 else
360 elt = XVECTOR (this)->contents[thisindex++]; 360 elt = XVECTOR (this)->contents[thisindex++];
361 } 361 }
@@ -1053,7 +1053,7 @@ mapcar1 (leni, vals, fn, seq)
1053 { 1053 {
1054 for (i = 0; i < leni; i++) 1054 for (i = 0; i < leni; i++)
1055 { 1055 {
1056 XFASTINT (dummy) = XSTRING (seq)->data[i]; 1056 XSETFASTINT (dummy, XSTRING (seq)->data[i]);
1057 vals[i] = call1 (fn, dummy); 1057 vals[i] = call1 (fn, dummy);
1058 } 1058 }
1059 } 1059 }