Mercurial > projects > ddmd
diff dmd/IntegerExp.d @ 137:09c858522d55
merge
author | Trass3r |
---|---|
date | Mon, 13 Sep 2010 23:29:00 +0200 |
parents | af1bebfd96a4 |
children | 438eaa11eed4 |
line wrap: on
line diff
--- a/dmd/IntegerExp.d Mon Sep 13 23:27:38 2010 +0200 +++ b/dmd/IntegerExp.d Mon Sep 13 23:29:00 2010 +0200 @@ -209,7 +209,8 @@ override bool isBool(bool result) { - return result ? value != 0 : value == 0; + int r = toInteger() != 0; + return cast(bool)(result ? r : !r); } override MATCH implicitConvTo(Type t)