You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Roger Chapman (JIRA)" <ji...@apache.org> on 2009/10/29 11:06:59 UTC

[jira] Created: (LUCENENET-197) LongToPrefixCoded in NumericUtils does not work for negitive Numbers

LongToPrefixCoded in NumericUtils does not work for negitive Numbers
--------------------------------------------------------------------

                 Key: LUCENENET-197
                 URL: https://issues.apache.org/jira/browse/LUCENENET-197
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Roger Chapman
            Priority: Critical
         Attachments: NumericUtils.patch

long sortableBits = val ^ unchecked((uint) 0x8000000000000000L);  output is wrong due to unsigned long

Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LUCENENET-197) LongToPrefixCoded in NumericUtils does not work for negitive Numbers - 2.9.0

Posted by "Roger Chapman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Chapman updated LUCENENET-197:
------------------------------------

    Summary: LongToPrefixCoded in NumericUtils does not work for negitive Numbers  - 2.9.0  (was: LongToPrefixCoded in NumericUtils does not work for negitive Numbers)

> LongToPrefixCoded in NumericUtils does not work for negitive Numbers  - 2.9.0
> -----------------------------------------------------------------------------
>
>                 Key: LUCENENET-197
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-197
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Roger Chapman
>            Priority: Critical
>         Attachments: NumericUtils.patch
>
>
> long sortableBits = val ^ unchecked((uint) 0x8000000000000000L);  output is wrong due to unsigned long
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (LUCENENET-197) LongToPrefixCoded in NumericUtils does not work for negitive Numbers

Posted by "Roger Chapman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roger Chapman updated LUCENENET-197:
------------------------------------

    Attachment: NumericUtils.patch

> LongToPrefixCoded in NumericUtils does not work for negitive Numbers
> --------------------------------------------------------------------
>
>                 Key: LUCENENET-197
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-197
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Roger Chapman
>            Priority: Critical
>         Attachments: NumericUtils.patch
>
>
> long sortableBits = val ^ unchecked((uint) 0x8000000000000000L);  output is wrong due to unsigned long
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (LUCENENET-197) LongToPrefixCoded in NumericUtils does not work for negitive Numbers - 2.9.0

Posted by "George Aroush (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENENET-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Aroush resolved LUCENENET-197.
-------------------------------------

    Resolution: Fixed

Committed.  Thanks Roger!

> LongToPrefixCoded in NumericUtils does not work for negitive Numbers  - 2.9.0
> -----------------------------------------------------------------------------
>
>                 Key: LUCENENET-197
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-197
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Roger Chapman
>            Priority: Critical
>         Attachments: NumericUtils.patch
>
>
> long sortableBits = val ^ unchecked((uint) 0x8000000000000000L);  output is wrong due to unsigned long
> Patch attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.