chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][simple-md5] Enable hashing of big files


From: lou
Subject: Re: [PATCH][simple-md5] Enable hashing of big files
Date: Mon, 16 Dec 2024 12:49:30 +0100


Hi Peter,

On that note...

 2. I hope I got the types right. I got a bit confused because
`unsigned-integer` seems to only accept values up to INT_MAX
    not up to UINT_MAX, which wasn't clear to me from the
    documentation here:
    http://wiki.call-cc.org/man/5/Foreign%20type%20specifiers#integers

Yeah, I had a look at that. The unsigned-integer type can
definitely hold UINT_MAX, but the problem is that you're passing
it to pointer+ which is defined to take "integer", which maps to
the "int" type in C, resulting in a loss of precision.

Oh I missed that, makes sense! Using most-positive-fixnum as well.

~~Lou





reply via email to

[Prev in Thread] Current Thread [Next in Thread]