]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commitdiff
Use 0 (store as-is) as the len when casting magic on the wizard
authorVincent Pit <vince@profvince.com>
Sat, 20 Sep 2008 21:11:12 +0000 (23:11 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 20 Sep 2008 21:11:12 +0000 (23:11 +0200)
Magic.xs

index 30577d4ccbb32acd9f48fd1322707213dacd0346..f4ec2923552d7a56da825e4232a27fa7ff0b7f46 100644 (file)
--- a/Magic.xs
+++ b/Magic.xs
@@ -852,7 +852,7 @@ CODE:
 #endif /* VMG_UVAR */
 
  sv = MGWIZ2SV(w);
- mg = sv_magicext(sv, NULL, PERL_MAGIC_ext, &vmg_wizard_vtbl, NULL, -1);
+ mg = sv_magicext(sv, NULL, PERL_MAGIC_ext, &vmg_wizard_vtbl, NULL, 0);
  mg->mg_private = SIG_WIZ;
  SvREADONLY_on(sv);