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

Alon Gazit along at mainsoft.com
Tue Sep 2 08:39:37 EDT 2003


Hello,

The property
System.Collections.Specialized.BitVector32.this[BitVector32.Section
section] should perform bitwise and with the complement of the mask
shifted version ( ~(section.Mask << section.Offset) ) and not with the
shifted version of the mask's complement ( ~section.Mask <<
section.Offset ). 

Steps to reproduce the problems:
the enclosed test case.

Actual Results:
the test case prints error.

Expected Results:
the test case prints nothing.

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/2c7e5765/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/2c7e5765/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitVector32.cs.diff
Type: application/octet-stream
Size: 498 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030902/2c7e5765/attachment.obj 


More information about the Mono-devel-list mailing list