diff Objects/floatobject.c @ 2059:866c81068dbd legacy-trunk

Added 1995 to copyright message. floatobject.c: fix hash(). methodobject.c: support METH_FREENAME flag bit.
author Guido van Rossum <guido@python.org>
date Wed, 04 Jan 1995 19:07:38 +0000
parents de49d49044d7
children cfbab79a799f
line wrap: on
line diff
--- a/Objects/floatobject.c	Wed Jan 04 19:06:22 1995 +0000
+++ b/Objects/floatobject.c	Wed Jan 04 19:07:38 1995 +0000
@@ -1,6 +1,6 @@
 /***********************************************************
-Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
-Amsterdam, The Netherlands.
+Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
+The Netherlands.
 
                         All Rights Reserved
 
@@ -212,7 +212,7 @@
 	}
 	else {
 		fractpart = frexp(fractpart, &expo);
-		fractpart = fractpart*4294967296.0; /* 2**32 */
+		fractpart = fractpart*2147483648.0; /* 2**31 */
 		x = (long) (intpart + fractpart) ^ expo; /* Rather arbitrary */
 	}
 	if (x == -1)