Skip to content

Commit a471aac

Browse files
committed
update more tests in test-foreign
1 parent 21ff8e4 commit a471aac

File tree

4 files changed

+495
-56
lines changed

4 files changed

+495
-56
lines changed

lisp/c/eval.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,10 +1018,10 @@ pointer args[];
10181018
else if (p==K_STRING) {
10191019
if (elmtypeof(lisparg)==ELM_FOREIGN) cargv[i++]=lisparg->c.ivec.iv[0];
10201020
else cargv[i++]=(eusinteger_t)(lisparg->c.str.chars);}
1021-
else if (p==K_FLOAT32) {
1021+
else if (p==K_FLOAT32 || (WORD_SIZE==32 && p==K_FLOAT)) {
10221022
numbox.f=ckfltval(lisparg);
10231023
cargv[i++]=(int)numbox.i.i1;}
1024-
else if (p==K_DOUBLE || p==K_FLOAT) {
1024+
else if (p==K_DOUBLE || (WORD_SIZE==64 && p==K_FLOAT)) {
10251025
numbox.d=ckfltval(lisparg);
10261026
cargv[i++]=numbox.i.i1; cargv[i++]=numbox.i.i2;}
10271027
else error(E_USER,(pointer)"unknown type specifier");}
@@ -1049,7 +1049,7 @@ pointer args[];
10491049
#endif /* end of kanehiro's patch 2000.12.13 */
10501050
else cargv[i++]=(eusinteger_t)(lisparg->c.obj.iv);}
10511051
/**/
1052-
if (resulttype==K_FLOAT) {
1052+
if (resulttype==K_FLOAT || resulttype==K_FLOAT32 || resulttype==K_DOUBLE) {
10531053
if (i<=8)
10541054
f=(*ffunc)(cargv[0],cargv[1],cargv[2],cargv[3],
10551055
cargv[4],cargv[5],cargv[6],cargv[7]);

0 commit comments

Comments
 (0)