Mercurial > projects > dil
changeset 540:660684f559a4
Fixed code in RealExpression.semantic().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Tue, 18 Dec 2007 22:49:52 +0100 |
parents | 3418027c3914 |
children | c0f5b1f78a55 |
files | trunk/src/dil/Expressions.d |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/Expressions.d Tue Dec 18 22:46:07 2007 +0100 +++ b/trunk/src/dil/Expressions.d Tue Dec 18 22:49:52 2007 +0100 @@ -778,15 +778,15 @@ this(Token* token) { - auto type = Types.Float; // Most common case? + auto type = Types.Double; // Most common case? switch (token.type) { - // case T.Float32: - // type = Types.Float; break; - case TOK.Float64: - type = Types.Double; break; + case TOK.Float32: + type = Types.Float; break; + // case TOK.Float64: + // type = Types.Double; break; case TOK.Float80: - type = Types.Double; break; + type = Types.Real; break; case TOK.Imaginary32: type = Types.Ifloat; break; case TOK.Imaginary64: @@ -794,7 +794,7 @@ case TOK.Imaginary80: type = Types.Ireal; break; default: - assert(token.type == TOK.Float32); + assert(token.type == TOK.Float64); } this(token.real_, type); }