Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mu-impl-fast
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
40
Issues
40
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mu
mu-impl-fast
Commits
a03a1bfd
Commit
a03a1bfd
authored
Sep 19, 2017
by
qinsoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
15066724
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
types.rs
src/ast/src/types.rs
+1
-1
muirbuilder.rs
src/vm/api/api_impl/muirbuilder.rs
+3
-4
No files found.
src/ast/src/types.rs
View file @
a03a1bfd
...
...
@@ -158,7 +158,7 @@ impl MuType {
pub
fn
is_funcref
(
&
self
)
->
bool
{
match
self
.v
{
MuType_
::
Struct
(
_
)
=>
true
,
MuType_
::
FuncRef
(
_
)
=>
true
,
_
=>
false
}
}
...
...
src/vm/api/api_impl/muirbuilder.rs
View file @
a03a1bfd
...
...
@@ -2725,10 +2725,9 @@ impl<'lb, 'lvm> BundleLoader<'lb, 'lvm> {
impl_to_ty
.is_double
())
}
ConvOp
::
REFCAST
=>
{
(
impl_from_ty
.is_ref
()
||
impl_from_ty
.is_iref
()
||
impl_from_ty
.is_funcref
())
&&
(
impl_to_ty
.is_ref
()
||
impl_to_ty
.is_iref
()
||
impl_to_ty
.is_funcref
())
(
impl_from_ty
.is_ref
()
&&
impl_to_ty
.is_ref
())
||
(
impl_from_ty
.is_iref
()
&&
impl_to_ty
.is_iref
())
||
(
impl_from_ty
.is_funcref
()
&&
impl_to_ty
.is_funcref
())
}
ConvOp
::
PTRCAST
=>
{
(
impl_from_ty
.is_ptr
()
||
impl_from_ty
.is_int
())
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment