Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1585:29b0f2d11c92 | 1586:7f728c52e63c |
---|---|
454 extractty = Type::tfloat80; | 454 extractty = Type::tfloat80; |
455 } | 455 } |
456 DImValue* re = new DImValue(extractty, repart); | 456 DImValue* re = new DImValue(extractty, repart); |
457 return DtoCastFloat(loc, re, to); | 457 return DtoCastFloat(loc, re, to); |
458 } | 458 } |
459 else | 459 else { |
460 error(loc, "Don't know how to cast %s to %s", vty->toChars(), to->toChars()); | 460 error(loc, "Don't know how to cast %s to %s", vty->toChars(), to->toChars()); |
461 } | 461 fatal(); |
462 | 462 } |
463 } | |
464 |