aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-27 17:21:54 +0000
committerRichard M. Stallman1997-08-27 17:21:54 +0000
commit0de441b6f6f5223bbf0c9ef7a9240cbe78c0ac35 (patch)
tree40a8defdb1563fa588155459808d2dc5cf003f6a /src
parentd420d5b4fe6df6319a5ff150c353dc4eb3050851 (diff)
downloademacs-0de441b6f6f5223bbf0c9ef7a9240cbe78c0ac35.tar.gz
emacs-0de441b6f6f5223bbf0c9ef7a9240cbe78c0ac35.zip
(concat): Fix use of Fchar_bytes.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fns.c b/src/fns.c
index 29ecef48712..d7bb5419f67 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -427,7 +427,7 @@ concat (nargs, args, target_type, last_special)
427 ch = XVECTOR (this)->contents[i]; 427 ch = XVECTOR (this)->contents[i];
428 if (! INTEGERP (ch)) 428 if (! INTEGERP (ch))
429 wrong_type_argument (Qintegerp, ch); 429 wrong_type_argument (Qintegerp, ch);
430 leni += Fchar_bytes (ch); 430 leni += XFASTINT (Fchar_bytes (ch));
431 } 431 }
432 else 432 else
433 for (; CONSP (this); this = XCONS (this)->cdr) 433 for (; CONSP (this); this = XCONS (this)->cdr)
@@ -435,7 +435,7 @@ concat (nargs, args, target_type, last_special)
435 ch = XCONS (this)->car; 435 ch = XCONS (this)->car;
436 if (! INTEGERP (ch)) 436 if (! INTEGERP (ch))
437 wrong_type_argument (Qintegerp, ch); 437 wrong_type_argument (Qintegerp, ch);
438 leni += Fchar_bytes (ch); 438 leni += XFASTINT (Fchar_bytes (ch));
439 } 439 }
440 } 440 }
441 else 441 else