diff dmd/ShrExp.d @ 130:60bb0fe4563e

dmdfe 2.037 first main iteration
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 09 Sep 2010 22:51:44 +0100
parents 6caaf0256da1
children e3afd1303184
line wrap: on
line diff
--- a/dmd/ShrExp.d	Sun Sep 05 15:32:22 2010 +0400
+++ b/dmd/ShrExp.d	Thu Sep 09 22:51:44 2010 +0100
@@ -75,7 +75,7 @@
 
 	override elem* toElem(IRState* irs)
 	{
-		return toElemBin(irs, OPER.OPshr);
+		return toElemBin(irs, e1.type.isunsigned() ? OPER.OPshr : OPER.OPashr);
 	}
 }