** Changed in: tarantool
   Importance: Undecided => Medium

** Changed in: tarantool
       Status: Fix Committed => Fix Released

-- 
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 Released

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

Reply via email to