Ticket #3991 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

[with patch, positive review] Matrix_mod2_dense.__hash__ 32-bit doctest failure

Reported by: malb Assigned to: malb
Priority: blocker Milestone: sage-3.1.2
Component: linear algebra Keywords: doctest failure
Cc: cremona

Description (Last modified by mabshoff)

John reported this:

The third is this:

File "/home/john/sage-3.1.2.alpha1/tmp/matrix_mod2_dense.py", line 267:

    sage: hex(hash(A))
Expected:
    '0xdeadbeed'
Got:
    '-0x21524113'

Attachments

trac_3991_matrix_mod2_dense_hash_32_bit.patch (0.8 kB) - added by malb on 08/29/2008 04:32:10 AM.

Change History

08/29/2008 04:32:10 AM changed by malb

  • attachment trac_3991_matrix_mod2_dense_hash_32_bit.patch added.

08/29/2008 06:43:22 PM changed by mabshoff

  • cc set to cremona.
  • description changed.

John,

can you verify that this patch fixes the issue for you on your 32 bit box? Otherwise this is an "obvious" positive review.

Cheers,

Michael

08/30/2008 03:59:42 AM changed by cremona

  • summary changed from [with patch, needs review] Matrix_mod2_dense.__hash__ 32-bit doctest failure to [with patch, positive review] Matrix_mod2_dense.__hash__ 32-bit doctest failure.

Patch applies fine and all doctests in sage.matrix pass. OK!

08/30/2008 11:10:55 AM changed by mabshoff

  • status changed from new to closed.
  • resolution set to fixed.

Merged in Sage 3.1.2.alpha3