mirror of https://github.com/GNOME/gimp.git
R5RS compatability fix for append by Doug Currie. (SourceForge bug #3400202)
Append with one argument should return the argument but not as a list.
This commit is contained in:
parent
5d61a737a7
commit
5d3be5be3c
|
@ -495,7 +495,7 @@ static num num_rem(num a, num b) {
|
|||
e1=num_ivalue(a);
|
||||
e2=num_ivalue(b);
|
||||
res=e1%e2;
|
||||
/* modulo should have same sign as second operand */
|
||||
/* remainder should have same sign as second operand */
|
||||
if (res > 0) {
|
||||
if (e1 < 0) {
|
||||
res -= labs(e2);
|
||||
|
@ -3985,7 +3985,7 @@ static pointer opexe_4(scheme *sc, enum scheme_opcodes op) {
|
|||
}
|
||||
x=car(sc->args);
|
||||
if(cdr(sc->args)==sc->NIL) {
|
||||
s_return(sc,sc->args);
|
||||
s_return(sc,x);
|
||||
}
|
||||
for (y = cdr(sc->args); y != sc->NIL; y = cdr(y)) {
|
||||
x=append(sc,x,car(y));
|
||||
|
|
Loading…
Reference in New Issue