Skip to content

Commit 77e74d0

Browse files
committed
indent
1 parent db23294 commit 77e74d0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lisp.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ PRIM length(lisp r) {
15401540
// scheme string functions - https://www.gnu.org/software/guile/manual/html_node/Strings.html#Strings
15411541
// common lisp string functions - http://www.lispworks.com/documentation/HyperSpec/Body/f_stgeq_.htm
15421542
PRIM concat(lisp* envp, lisp x) {
1543-
// calcualate len
1543+
// calculate len
15441544
int len = 1;
15451545
lisp i = x;
15461546
while (i) {
@@ -1551,15 +1551,14 @@ PRIM concat(lisp* envp, lisp x) {
15511551
if (iv < 0) len += 1;
15521552
iv = abs(iv);
15531553
// each digit
1554-
while ((iv /= 10) > 0) len++;
1554+
while ((iv /= 10) > 0) len++;
15551555
// last digit
15561556
len++;
15571557
} else {
15581558
char* s = getstring(v);
15591559
char ss[7] = {0};
15601560
if (HSYMP(v)) s = symbol_getString(v);
15611561
else if (SYMP(v)) s = sym2str(v, ss);
1562-
else if (INTP(v))
15631562
len += strlen(s);
15641563
}
15651564
i = cdr(i);
@@ -1688,7 +1687,7 @@ static lisp readString() {
16881687
if (!c) error("string.not_terminated");
16891688
int len = input - start - 1;
16901689

1691-
// we modify the copied string as the string above may be constant
1690+
// we modify the copied string as the string above may be constant
16921691
lisp r = mklenstring(start, len);
16931692
// remove '\', this may waste a byte or two if any
16941693
char* from = getstring(r);

0 commit comments

Comments
 (0)