Public bug reported: For an xs_integer (that is a typedef for Integer), an expression such as:

i - 1 apparently constructs a Decimal for the 1 and performs an Integer - Decimal calculation that returns a Decimal. It shouldn't construct a Decimal. ** Affects: zorba Importance: Medium Assignee: Paul J. Lucas (paul-lucas) Status: In Progress ** Description changed: For an xs_integer (that is a typedef for Integer), an expression such as: - i - 1 + i - 1 - apparently constructs a Decimal for the 1 and performs an Integer - Decimal calculation that returns a Decimal. - It shouldn't construct a Decimal. + apparently constructs a Decimal for the 1 and performs an Integer - + Decimal calculation that returns a Decimal. It shouldn't construct a + Decimal. -- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/966355 Title: Compiler chooses wrong overload for some Integer operators Status in Zorba - The XQuery Processor: In Progress Bug description: For an xs_integer (that is a typedef for Integer), an expression such as: i - 1 apparently constructs a Decimal for the 1 and performs an Integer - Decimal calculation that returns a Decimal. It shouldn't construct a Decimal. To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/966355/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : zorba-coders@lists.launchpad.net Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp