Mercurial > projects > ldc
diff gen/complex.cpp @ 1586:7f728c52e63c
Fix several 'reaches end of function' warnings by making fatal noreturn.
The warnings also pointed out a few genuine bugs. Replace some tabs with
spaces.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Fri, 06 Nov 2009 21:51:41 +0100 |
parents | 8d086d552909 |
children |
line wrap: on
line diff
--- a/gen/complex.cpp Thu Oct 22 13:30:30 2009 +0200 +++ b/gen/complex.cpp Fri Nov 06 21:51:41 2009 +0100 @@ -456,7 +456,9 @@ DImValue* re = new DImValue(extractty, repart); return DtoCastFloat(loc, re, to); } - else + else { error(loc, "Don't know how to cast %s to %s", vty->toChars(), to->toChars()); + fatal(); + } }