diff options
| author | Karl Heuer | 1994-10-04 15:53:00 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-10-04 15:53:00 +0000 |
| commit | ad17573af1708d78c635c40bd2a1c8db3364c6a4 (patch) | |
| tree | 08287a9bbc269315461d738fd1b07eb7bf9567ff | |
| parent | 2acfd7ae4938d238bc534fbc76211acf37b3d963 (diff) | |
| download | emacs-ad17573af1708d78c635c40bd2a1c8db3364c6a4.tar.gz emacs-ad17573af1708d78c635c40bd2a1c8db3364c6a4.zip | |
(Flength, concat, mapcar1): Don't use XFASTINT as an lvalue.
| -rw-r--r-- | src/fns.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -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 | } |