Fixed on branch bugfix1131108
** Changed in: tarantool
Assignee: (unassigned) => Dmitry Simonenko (pmwkaa)
** Changed in: tarantool
Milestone: None => 1.4.9
** Changed in: tarantool
Status: New => Fix Committed
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1131108
Title:
tonumber64 from negative int inconsistency
Status in Tarantool - an efficient in-memory data store:
Fix Committed
Bug description:
lua tonumber64(-1)
---
- 4294967295 <----------------- it is bug
...
lua tonumber64(-1LL)
---
- 18446744073709551615
...
lua -1
---
- -1
...
lua -1LL
---
- - <------------------ it is bug also ("-" instead
of "-1")
...
lua tonumber64(-1.0)
---
- 4294967295
...
lua a = tonumber64(5)
lua b = tonumber64(6)
localhost> lua a - b
---
- 18446744073709551615
...
lua a = 6LL
lua b = 7LL
lua a - b
---
- -
...
I think it is not expected behavior of the NUM64 numbers.
May be add signess to NUM64 type?
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1131108/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp