dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Int16.cs, 1.10, 1.11 I


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System Int16.cs, 1.10, 1.11 Int32.cs, 1.12, 1.13 UInt32.cs, 1.9, 1.10 Int64.cs, 1.9, 1.10 UInt64.cs, 1.9, 1.10
Date: Mon, 21 Jul 2003 12:54:48 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System
In directory subversions:/tmp/cvs-serv12779/runtime/System

Modified Files:
        Int16.cs Int32.cs UInt32.cs Int64.cs UInt64.cs 
Log Message:
Double hash space because -42 and 2147483606 have the same hashcode


Index: Int16.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Int16.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** Int16.cs    27 Nov 2002 14:37:27 -0000      1.10
--- Int16.cs    21 Jul 2003 16:54:45 -0000      1.11
***************
*** 39,45 ****
        public override int GetHashCode()
                        {
!                               return unchecked((((int)(ushort)value_) |
!                                                                
(((int)(ushort)value_) << 16))
!                                                                               
& 0x7FFFFFFF);
                        }
        public override bool Equals(Object value)
--- 39,44 ----
        public override int GetHashCode()
                        {
!                               return unchecked(((int)(ushort)value_) |
!                                                                
(((int)(ushort)value_) << 16));
                        }
        public override bool Equals(Object value)

Index: Int32.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Int32.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** Int32.cs    23 Apr 2003 11:00:43 -0000      1.12
--- Int32.cs    21 Jul 2003 16:54:45 -0000      1.13
***************
*** 38,42 ****
        // Override inherited methods.
        public override int GetHashCode()
!                       { return (value_ & 0x7FFFFFFF); }
        public override bool Equals(Object value)
                        {
--- 38,42 ----
        // Override inherited methods.
        public override int GetHashCode()
!                       { return (value_); }
        public override bool Equals(Object value)
                        {

Index: UInt32.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/UInt32.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** UInt32.cs   27 Nov 2002 14:37:27 -0000      1.9
--- UInt32.cs   21 Jul 2003 16:54:45 -0000      1.10
***************
*** 40,44 ****
        public override int GetHashCode()
                        {
!                               return unchecked(((int)value_) & 0x7FFFFFFF);
                        }
        public override bool Equals(Object value)
--- 40,44 ----
        public override int GetHashCode()
                        {
!                               return unchecked((int)value_);
                        }
        public override bool Equals(Object value)

Index: Int64.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Int64.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** Int64.cs    27 Nov 2002 14:37:27 -0000      1.9
--- Int64.cs    21 Jul 2003 16:54:45 -0000      1.10
***************
*** 39,44 ****
        public override int GetHashCode()
                        {
!                               return unchecked(((int)(value_ ^ (value_ >> 
32)))
!                                                                               
& 0x7FFFFFFF);
                        }
        public override bool Equals(Object value)
--- 39,43 ----
        public override int GetHashCode()
                        {
!                               return unchecked((int)(value_ ^ (value_ >> 
32)));
                        }
        public override bool Equals(Object value)

Index: UInt64.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/UInt64.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** UInt64.cs   27 Nov 2002 14:37:27 -0000      1.9
--- UInt64.cs   21 Jul 2003 16:54:45 -0000      1.10
***************
*** 40,45 ****
        public override int GetHashCode()
                        {
!                               return unchecked(((int)(value_ ^ (value_ >> 
32)))
!                                                                               
& 0x7FFFFFFF);
                        }
        public override bool Equals(Object value)
--- 40,44 ----
        public override int GetHashCode()
                        {
!                               return unchecked((int)(value_ ^ (value_ >> 
32)));
                        }
        public override bool Equals(Object value)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]