From: <pj...@us...> - 2009-10-25 18:31:56
|
Revision: 6901 http://jython.svn.sourceforge.net/jython/?rev=6901&view=rev Author: pjenvey Date: 2009-10-25 18:31:36 +0000 (Sun, 25 Oct 2009) Log Message: ----------- simplify indexFor Modified Paths: -------------- trunk/jython/src/org/python/core/PyType.java Modified: trunk/jython/src/org/python/core/PyType.java =================================================================== --- trunk/jython/src/org/python/core/PyType.java 2009-10-25 02:34:06 UTC (rev 6900) +++ trunk/jython/src/org/python/core/PyType.java 2009-10-25 18:31:36 UTC (rev 6901) @@ -1827,8 +1827,7 @@ * Return the table index for type version/name. */ private static int indexFor(Object version, String name) { - long hash = version.hashCode() * name.hashCode(); - return (int)hash >>> (Integer.SIZE - SIZE_EXP); + return (version.hashCode() * name.hashCode()) >>> (Integer.SIZE - SIZE_EXP); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |