avoid uninitialized warning for CLASS_MOP_NO_XS
Yuval Kogman [Mon, 19 May 2008 08:05:41 +0000 (08:05 +0000)]
lib/Class/MOP.pm

index 8501f79..439ac91 100644 (file)
@@ -41,7 +41,7 @@ BEGIN {
         ) 
     };    
     
-    if ($ENV{CLASS_MOP_NO_XS} == 1) {
+    if ($ENV{CLASS_MOP_NO_XS}) {
         # NOTE:
         # this is if you really want things
         # to be slow, then you can force the