diff dmd/PowExp.d @ 170:96c0fff6897d

more global state cleanup
author korDen
date Thu, 30 Sep 2010 14:09:50 +0400
parents e7769d53e750
children e3afd1303184
line wrap: on
line diff
--- a/dmd/PowExp.d	Thu Sep 30 13:29:54 2010 +0400
+++ b/dmd/PowExp.d	Thu Sep 30 14:09:50 2010 +0400
@@ -109,10 +109,9 @@
 	            return e;
 	        }
 
-	        static int importMathChecked = 0;
-	        if (!importMathChecked)
+	        if (!global.importMathChecked)
 	        {
-	            importMathChecked = 1;
+	            global.importMathChecked = true;
 				auto amodules = global.amodules;
 	            for (int i = 0; i < amodules.dim; i++)
 	            {