-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The LuCI patch will not properly work that way, OpenWrt Lua does not
handle numeric integer values > 2^31 bit. A somewhat larger range can be
stored as float but the precision is not enough:

# lua -e 'print(string.format("%d", tonumber("18446744073709551615")))'
lua: (command line):1: bad argument #2 to 'format' (integer expected,
got number)

# lua -e 'print(string.format("%f", tonumber("18446744073709551615")))'
18446744073709553000.000000


Probably needs to be divided into two 32bit hi and lo parts on the Lua side.

~ Jow
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/+KGYACgkQdputYINPTPMnkwCeKu0D429ZS7HO7CfQvZ07lAgW
ZP0An0J/UK8Tt9OEQHl3pBA+vPE0P/mU
=TaHG
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to