summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-04 19:07:38 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-04 19:07:38 (GMT)
commit6610ad9d6bfe484a026f1fd34ebdcdf9924f9114 (patch)
tree60af7fc4a0d1c7687fd3c7848a37e4d432053ab0 /Objects/floatobject.c
parent5799b520086129ed8aaadeb3b941b3000a42576a (diff)
downloadcpython-6610ad9d6bfe484a026f1fd34ebdcdf9924f9114.zip
cpython-6610ad9d6bfe484a026f1fd34ebdcdf9924f9114.tar.gz
cpython-6610ad9d6bfe484a026f1fd34ebdcdf9924f9114.tar.bz2
Added 1995 to copyright message.
floatobject.c: fix hash(). methodobject.c: support METH_FREENAME flag bit.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 3f8e6aa..b1bb968 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -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 @@ float_hash(v)
}
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)