mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Check type compatibility when coercing RootedVar to Handle, bug 745361. r=luke
This commit is contained in:
parent
b6e8036e56
commit
1e885365ff
@ -334,6 +334,7 @@ template <typename T> template <typename S>
|
||||
inline
|
||||
Handle<T>::Handle(const RootedVar<S> &root)
|
||||
{
|
||||
testAssign<S>();
|
||||
ptr = reinterpret_cast<const T *>(root.address());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user