oops, i wanted this sv type no-gv_fetch
Jesse Luehrs [Tue, 18 Oct 2011 18:18:42 +0000 (13:18 -0500)]
XS.xs

diff --git a/XS.xs b/XS.xs
index c7bc662..e4b6af3 100644 (file)
--- a/XS.xs
+++ b/XS.xs
@@ -562,7 +562,7 @@ add_symbol(self, variable, initial=NULL, ...)
         gv_init(glob, namespace, name, len, 1);
     }
 
-    switch (SvTYPE(glob)) {
+    switch (vartype_to_svtype(variable.type)) {
     case SVt_PVIO:
         (void)GvIOn(glob);
         break;