Skip to content

Commit

Permalink
update more tests in test-foreign
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Jun 2, 2020
1 parent 21ff8e4 commit a471aac
Show file tree
Hide file tree
Showing 4 changed files with 495 additions and 56 deletions.
6 changes: 3 additions & 3 deletions lisp/c/eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,10 +1018,10 @@ pointer args[];
else if (p==K_STRING) {
if (elmtypeof(lisparg)==ELM_FOREIGN) cargv[i++]=lisparg->c.ivec.iv[0];
else cargv[i++]=(eusinteger_t)(lisparg->c.str.chars);}
else if (p==K_FLOAT32) {
else if (p==K_FLOAT32 || (WORD_SIZE==32 && p==K_FLOAT)) {
numbox.f=ckfltval(lisparg);
cargv[i++]=(int)numbox.i.i1;}
else if (p==K_DOUBLE || p==K_FLOAT) {
else if (p==K_DOUBLE || (WORD_SIZE==64 && p==K_FLOAT)) {
numbox.d=ckfltval(lisparg);
cargv[i++]=numbox.i.i1; cargv[i++]=numbox.i.i2;}
else error(E_USER,(pointer)"unknown type specifier");}
Expand Down Expand Up @@ -1049,7 +1049,7 @@ pointer args[];
#endif /* end of kanehiro's patch 2000.12.13 */
else cargv[i++]=(eusinteger_t)(lisparg->c.obj.iv);}
/**/
if (resulttype==K_FLOAT) {
if (resulttype==K_FLOAT || resulttype==K_FLOAT32 || resulttype==K_DOUBLE) {
if (i<=8)
f=(*ffunc)(cargv[0],cargv[1],cargv[2],cargv[3],
cargv[4],cargv[5],cargv[6],cargv[7]);
Expand Down
Loading

0 comments on commit a471aac

Please sign in to comment.