Could it be that the Racket layer importing rktio C code directly uses
get-ffi-obj and does not convert scheme_bignum_type to _int64?

@Dmitry: I guess Racket uses 1 bit for type tagging, leaving only
30+sign (or 62+sign) bits for the actual value.

On Fri, Dec 20, 2019 at 2:01 PM Matthew Flatt <mfl...@cs.utah.edu> wrote:
>
> The Racket-imposed limit should be 64 bits (more than enough) on all
> platforms. I can try to replicate the problem later today, but more
> information on the error message would be helpful.
>
> At Fri, 20 Dec 2019 17:39:37 +0300, Dmitry Pavlov wrote:
> > Hello,
> >
> > On a fresh 32-bit Racket 7.5 install on 32-bit Windows 7,
> > (file-position port number) does not work when number
> > is more that 1 GB.
> >
> > I can not now say exactly what the error message was,
> > because I am away from that system, but IIUC it
> > was something about the position being "too large".
> >
> > The size of the file, though, is definitely large enough
> > to have that position, and (file-position port number)
> > on it worked fine until the number grew beyond
> > the said limit.
> >
> > On 64-bit Linux, everything is fine.
> >
> > Can I work this problem around somehow?
> >
> > Best regards
> >
> > Dmitry
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to racket-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/racket-users/22f36172-daf8-7e6f-5f55-9e1c562b
> > 8b61%40iaaras.ru.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/5dfd2879.1c69fb81.2bbe.ad80SMTPIN_ADDED_MISSING%40gmr-mx.google.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAMTzy%2BbxJw-tGzmnpWGkvpab_1zW9QM%2BAgJBftJncAHSFrEz4g%40mail.gmail.com.

Reply via email to