[Mono-devel-list] [PATCH] bitwise problem in System.Collections.Specialized.BitVector32.this[int mask] property

Alon Gazit along at mainsoft.com
Tue Sep 2 09:31:26 EDT 2003


Hello,

The property System.Collections.Specialized.BitVector32.this[int mask]
currently doesn't return the correct value when the data in the
BitVector32 instance is negative. 

Steps to reproduce the problems:
1. create a new instance of BitVector32 with -1 as data.
2. call the property this[int mask] , with Int32.MinValue as parameter.

Actual Results:
the property value is true.

Expected Results:
the property value is false.

Enclosed is a small test case and a patch.

Thanks a lot,

Alon Gazit

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030902/bff4d4b7/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Test.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030902/bff4d4b7/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitVector32.cs.diff
Type: application/octet-stream
Size: 353 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030902/bff4d4b7/attachment.obj 


More information about the Mono-devel-list mailing list