ucode: add temporary fix for integer formatting on 32bit systems
authorJo-Philipp Wich <jo@mein.io>
Sat, 22 Jan 2022 23:51:11 +0000 (00:51 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 22 Jan 2022 23:57:58 +0000 (00:57 +0100)
commit3d3d03479d5b4a976cf1320d29f4bd4937d5a4ba
tree287d83ed36ba719cb656ab3d033fb50ead2209e5
parentaf8a059bb41dd7afee49ce9a5d52e9a8e010bbd8
ucode: add temporary fix for integer formatting on 32bit systems

The ucode VM always passes 64bit integer values to sprintf implementation
while the `%d` format expects 32bit integers on 32bit platforms, leading
to incorrect formatting results.

Temporarily solve the issue by casting the numeric argument to int until
a more thorough fix arrives with the next update.

Fixes: FS#4234
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
package/utils/ucode/Makefile
package/utils/ucode/patches/100-fix-int-format-on-32bit-system.patch [new file with mode: 0644]