Skip to content

Commit

Permalink
fix extern function at root namespace level
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Jun 27, 2011
1 parent 3cbb4c2 commit fb73827
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion winxedst1.winxed
Expand Up @@ -8263,7 +8263,10 @@ class FunctionExtern : CommonBase
function emit_get(e, owner)
{
var ns = self.owner;
string key = getparrotkey(ns.getpath());
var path = ns.getpath();
string key;
if (elements(path) > 0)
key = getparrotkey(path);
string reg = owner.tempreg(REGvar);
e.emitget_hll_global(reg, self.name, key);
return reg;
Expand Down

0 comments on commit fb73827

Please sign in to comment.