Skip to content

Commit

Permalink
compiler/libec: (#954) Fixed handling huge constant double expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
jerstlouis committed Aug 8, 2013
1 parent 9ac3450 commit f8d67de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/libec/src/pass15.ec
Expand Up @@ -7576,6 +7576,12 @@ void ProcessExpressionType(Expression exp)
type.kind = intType;
}
exp.isConstant = true;
if(exp.destType && exp.destType.kind == doubleType)
type.kind = doubleType;
else if(exp.destType && exp.destType.kind == floatType)
type.kind = floatType;
else if(exp.destType && exp.destType.kind == int64Type)
type.kind = int64Type;
}
break;
}
Expand Down

0 comments on commit f8d67de

Please sign in to comment.