projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
XS constructor
[gitmo/Mouse.git]
/
xs-src
/
MouseAccessor.xs
diff --git
a/xs-src/MouseAccessor.xs
b/xs-src/MouseAccessor.xs
index
d2ae129
..
aa87df3
100644
(file)
--- a/
xs-src/MouseAccessor.xs
+++ b/
xs-src/MouseAccessor.xs
@@
-467,6
+467,7
@@
XS(XS_Mouse_simple_predicate)
SV*
mouse_instance_create(pTHX_ HV* const stash) {
assert(stash);
+ assert(SvTYPE(stash) == SVt_PVHV);
return sv_bless( newRV_noinc((SV*)newHV()), stash );
}