File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1540,7 +1540,7 @@ PRIM length(lisp r) {
1540
1540
// scheme string functions - https://www.gnu.org/software/guile/manual/html_node/Strings.html#Strings
1541
1541
// common lisp string functions - http://www.lispworks.com/documentation/HyperSpec/Body/f_stgeq_.htm
1542
1542
PRIM concat (lisp * envp , lisp x ) {
1543
- // calcualate len
1543
+ // calculate len
1544
1544
int len = 1 ;
1545
1545
lisp i = x ;
1546
1546
while (i ) {
@@ -1551,15 +1551,14 @@ PRIM concat(lisp* envp, lisp x) {
1551
1551
if (iv < 0 ) len += 1 ;
1552
1552
iv = abs (iv );
1553
1553
// each digit
1554
- while ((iv /= 10 ) > 0 ) len ++ ;
1554
+ while ((iv /= 10 ) > 0 ) len ++ ;
1555
1555
// last digit
1556
1556
len ++ ;
1557
1557
} else {
1558
1558
char * s = getstring (v );
1559
1559
char ss [7 ] = {0 };
1560
1560
if (HSYMP (v )) s = symbol_getString (v );
1561
1561
else if (SYMP (v )) s = sym2str (v , ss );
1562
- else if (INTP (v ))
1563
1562
len += strlen (s );
1564
1563
}
1565
1564
i = cdr (i );
@@ -1688,7 +1687,7 @@ static lisp readString() {
1688
1687
if (!c ) error ("string.not_terminated" );
1689
1688
int len = input - start - 1 ;
1690
1689
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
1692
1691
lisp r = mklenstring (start , len );
1693
1692
// remove '\', this may waste a byte or two if any
1694
1693
char * from = getstring (r );
You can’t perform that action at this time.
0 commit comments