Can not handle largest xs:unsignedLong values

Bug #867059 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Low
Paul J. Lucas

Bug Description

When ZORBA_WITH_BIG_INTEGER=OFF, the implementation of Integer used a "long long" for the representation. However, Zorba currently uses Integer for xs:unsignedLong. This can not handle the largest, unsigned, 64-bit value.

A possible solution would be to templatize Integer with the representation type, e.g.:

    typedef IntegerImpl<long long> Integer;
    typedef IntegerImpl<unsigned long long> UnsignedInteger;

Tags: core-runtime

Related branches

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

The tests that were failing (from the W3C test suite) were:

K2-NumericGT-1.xq
K2-NumericGT-2.xq
K2-NumericLT-1.xq
K2-NumericLT-2.xq

Changed in zorba:
status: New → In Progress
Changed in zorba:
milestone: none → 2.2
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.