Mercurial > projects > ddmd
diff dmd/IntegerExp.d @ 20:1628b221808d
Fleshed out more unimplemented methods.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Wed, 07 Apr 2010 00:29:13 +0100 |
parents | 10317f0c89a5 |
children | ccbc1e0bb3f0 |
line wrap: on
line diff
--- a/dmd/IntegerExp.d Tue Apr 06 02:21:04 2010 +0100 +++ b/dmd/IntegerExp.d Wed Apr 07 00:29:13 2010 +0100 @@ -514,7 +514,10 @@ void toMangleBuffer(OutBuffer buf) { - assert(false); + if (cast(long)value < 0) + buf.printf("N%d", -value); + else + buf.printf("%d", value); } Expression toLvalue(Scope sc, Expression e)