unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* srfi-4's 64-bit integer printing is broken.
@ 2004-06-20 15:30 Rob Browning
  2004-06-20 16:00 ` Rob Browning
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Browning @ 2004-06-20 15:30 UTC (permalink / raw)
  Cc: Marius Vollmer


Right now srfi-4 uses scm_intprint to print 64-bit vector elements.
Since scm_intprint only accepts a long argument, this won't actually
work.  Marius, this may be something to consider during your API work.
Perhaps we need something like scm_print_integer(scm_t_intmax).

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: srfi-4's 64-bit integer printing is broken.
  2004-06-20 15:30 srfi-4's 64-bit integer printing is broken Rob Browning
@ 2004-06-20 16:00 ` Rob Browning
  2004-06-20 19:54   ` Rob Browning
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Browning @ 2004-06-20 16:00 UTC (permalink / raw)
  Cc: Marius Vollmer

Rob Browning <rlb@defaultvalue.org> writes:

> Right now srfi-4 uses scm_intprint to print 64-bit vector elements.
> Since scm_intprint only accepts a long argument, this won't actually
> work.  Marius, this may be something to consider during your API work.
> Perhaps we need something like scm_print_integer(scm_t_intmax).

For now I've added static print_(u)int64 functions based on the
scm_iint2str code directly to srfi-4.c.  I'll commit that in a while.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: srfi-4's 64-bit integer printing is broken.
  2004-06-20 16:00 ` Rob Browning
@ 2004-06-20 19:54   ` Rob Browning
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Browning @ 2004-06-20 19:54 UTC (permalink / raw)
  Cc: Marius Vollmer

Rob Browning <rlb@defaultvalue.org> writes:

> For now I've added static print_(u)int64 functions based on the
> scm_iint2str code directly to srfi-4.c.  I'll commit that in a while.

OK, it's in 1.7, and I may add it to 1.6.  I also made the uvec_print
function much shorter by using a local union to traverse the arrays.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-20 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-20 15:30 srfi-4's 64-bit integer printing is broken Rob Browning
2004-06-20 16:00 ` Rob Browning
2004-06-20 19:54   ` Rob Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).