Remove cases where an array is used in a boolean context

This commit is contained in:
Daniel Murphy 2013-11-27 18:23:07 +11:00
parent 0d51ebd128
commit 13f343334c
8 changed files with 12 additions and 12 deletions

View file

@ -365,7 +365,7 @@ T enforce(T, Dg, string file = __FILE__, size_t line = __LINE__)
private void bailOut(string file, size_t line, in char[] msg) @safe pure
{
throw new Exception(msg ? msg.idup : "Enforcement failed", file, line);
throw new Exception(msg.ptr ? msg.idup : "Enforcement failed", file, line);
}
unittest