[Issue 16739] switch ignores case

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 23 13:34:18 PST 2016


https://issues.dlang.org/show_bug.cgi?id=16739

--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Interesting find by ketmar in
https://forum.dlang.org/post/cvfdiwxvdkcyrfhewnmy@forum.dlang.org

The binary search through the list of possible strings is flawed -- it uses
memcmp to do the binary search, and so allows the endianness of the machine to
mess with the results.

--


More information about the Digitalmars-d-bugs mailing list