Changeset 4931


Ignore:
Timestamp:
11/30/03 18:18:59 (18 years ago)
Author:
piso
Message:

hash(): use key.sxhash().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/HashTable.java

    r4921 r4931  
    33 *
    44 * Copyright (C) 2002-2003 Peter Graves
    5  * $Id: HashTable.java,v 1.25 2003-11-30 05:54:08 piso Exp $
     5 * $Id: HashTable.java,v 1.26 2003-11-30 18:18:59 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    208208    final int hash(LispObject key)
    209209    {
    210         return key == null ? 0 : Math.abs(key.hashCode() % buckets.length);
     210        return key == null ? 0 : (key.sxhash().getValue() % buckets.length);
    211211    }
    212212
     
    226226                return false;
    227227        }
    228     }
    229 
    230     private static final int hashCode(LispObject o)
    231     {
    232         return o == null ? 0 : o.hashCode();
    233228    }
    234229
Note: See TracChangeset for help on using the changeset viewer.