binary searches in phobos

Karen Lanrap karen at
Thu Dec 7 02:37:57 PST 2006

At least the searches in phobos/internal/switch.d fail when the 
length of the searched list reaches int.max/2, because a signed shift 
is executed instead of an unsigned shift to compute the new "mid" 
index for checking.

Should this considered to be a bug---or as an academic detection 

More information about the Digitalmars-d-learn mailing list