zlib error 64-bit

Functions compress/uncompress of zlib : i do not know how to convert 64-bit
Your ideas are welcome…

feedback://showreport?report_id=41356

[quote=224076:@Benoit Griveau]Functions compress/uncompress of zlib : i do not know how to convert 64-bit
Your ideas are welcome…

feedback://showreport?report_id=41356[/quote]

Apparently it was not possible to replicate the bug.

Maybe a test project would help asserting the issue, but in the interim, maybe a 32 bit helper would do ?

There is a project! (“zlib problem 64bit example”)
Build 32-bit -> click “uncompress” button: OK
Build 64-bit -> click “uncompress” button: Error
See screen 32-bit and 64-bit.
Thanks.

This is not a Xojo bug. It looks like you can just change usage of UInt32 to UInteger and it works OK.

Thanks Paul!
Now with “UInteger” it works in 64-bit and 32-bit still.
Just curious why “UInteger” and not “UInt64” ?

Uinteger will be 32 bits on 32 bit platforms and 64 bits on 64 bit platforms

You could declare things twice - once for 32 bit and once for 64 bit - but there’s no need

Thank you for the clarification.