Skip to content

Commit

Permalink
ast: Simplify bydesc arg -> bydesc param handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed Mar 19, 2014
1 parent 6673bc6 commit 6289089
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/compiler/ast-node-arg.bas
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,7 @@ private function hCheckByDescParam _
if( symbIsParamByDesc( s ) ) then
'' it's a pointer, but it will be seen as anything else
'' (ie: "array() as string"), so, remap the type
astDelTree( arg )
n->l = astNewVAR( s, 0, typeAddrOf( FB_DATATYPE_VOID ) )
astSetType( arg, typeAddrOf( FB_DATATYPE_VOID ), NULL )
return TRUE
end if

Expand Down

0 comments on commit 6289089

Please sign in to comment.