Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f623b3
)
Ported the Guile library for usage of 64-bit numbers.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 14 Feb 2008 05:25:06 +0000
(06:25 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Thu, 14 Feb 2008 05:25:06 +0000
(06:25 +0100)
lib/guile/dolcon-guile.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/guile/dolcon-guile.c
b/lib/guile/dolcon-guile.c
index
e3e6db8
..
f0abc2f
100644
(file)
--- a/
lib/guile/dolcon-guile.c
+++ b/
lib/guile/dolcon-guile.c
@@
-184,10
+184,13
@@
static SCM scm_dc_intresp(SCM scm_resp)
ret = scm_cons(scm_makfrom0str(icswcstombs(ires->argv[i].val.str, "UTF-8", NULL)), ret);
break;
case 2:
- ret = scm_cons(scm_
int2num
(ires->argv[i].val.num), ret);
+ ret = scm_cons(scm_
from_int
(ires->argv[i].val.num), ret);
break;
case 3:
- ret = scm_cons(scm_double2num(ires->argv[i].val.flnum), ret);
+ ret = scm_cons(scm_from_double(ires->argv[i].val.flnum), ret);
+ break;
+ case 4:
+ ret = scm_cons(scm_from_int64(ires->argv[i].val.num), ret);
break;
}
}