[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] Re: file-open returns a flonum w/ 2.735
From: |
felix winkelmann |
Subject: |
[Chicken-hackers] Re: file-open returns a flonum w/ 2.735 |
Date: |
Wed, 7 Nov 2007 07:33:35 +0100 |
On Nov 6, 2007 9:46 PM, Kon Lovett <address@hidden> wrote:
> Hi Felix,
>
> The current Chicken trunk returns a flonum from file-open (in egg-
> post-commit):
>
> Uploading files:
> Error: (file-read) bad argument type - not a fixnum: 23546.0
>
> Call history:
>
> <eval> [out.2487] ((lambda (fd.2491) ((lambda (data.
> 2492) ((lambda () (begin (print* fname.2488 (quote " ")) (with-pro......
> <eval> [out.2487] (file-open fname.2488 open/read)
> <eval> [out.2487] ((lambda (data.2492) ((lambda ()
> (begin (print* fname.2488 (quote " ")) (with-progress-indicator
> (la......
> <eval> [out.2487] (first (file-read fd.2491 s.2490))
> <eval> [out.2487] (file-read fd.2491 s.2490)
> <eval> [main] (k.3548 (lambda () (begin (print-
> error-message ex.3549) (print-call-chain) (exit (quote 1)))))
> <eval> [main] (print-error-message ex.3549)
> <eval> [main] (print-call-chain) <--
>
> Not sure where the problem is.
>
Argh - I should have mentioned that on the -hackers mailing list.
"file-size" should handle >4GB files now and such can return a
flonum. Due to a bootstrapping issue (ffi changed slightly), compiling
posixunix.scm with the old chicken will always return a flonum.
Just touch posixunix.scm and rebuild.
cheers,
felix
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-hackers] Re: file-open returns a flonum w/ 2.735,
felix winkelmann <=