projects
/
gitmo/Mouse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add prototypes
[gitmo/Mouse.git]
/
xs-src
/
MouseAttribute.xs
diff --git
a/xs-src/MouseAttribute.xs
b/xs-src/MouseAttribute.xs
index
2b3e621
..
7b25881
100644
(file)
--- a/
xs-src/MouseAttribute.xs
+++ b/
xs-src/MouseAttribute.xs
@@
-54,7
+54,7
@@
mouse_build_xa(pTHX_ SV* const attr) {
}
}
- if(predicate_calls(attr, "should_coerce")){
+ if(predicate_calls(attr, "should_coerce") && predicate_calls(tc, "has_coercion")){
flags |= MOUSEf_ATTR_SHOULD_COERCE;
}