When passing in data whose encoded length (minus one?) isn't an exact multiple of 64, this function complains that (#data-1)/64 is not an integer.
Kim Alvefur
unread,
Nov 7, 2024, 7:54:16 AM11/7/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to proso...@googlegroups.com
Most likely a Lua 5.3+ integer issue. Should be easily fixed by
`math.floor()` on the division result. I see no tests for this nor any
uses of this function in Prosody itself, so not surprising that any
breakage has gone unnoticed.