Mercurial > hg > Members > Moririn
diff src/parallel_execution/generate_stub.pl @ 391:2d9c500f263e
fix generate_stub
author | mir3636 |
---|---|
date | Tue, 01 Aug 2017 17:50:23 +0900 |
parents | d9a7620a1106 |
children | 99c50356d917 |
line wrap: on
line diff
--- a/src/parallel_execution/generate_stub.pl Mon Jul 31 22:40:08 2017 +0900 +++ b/src/parallel_execution/generate_stub.pl Tue Aug 01 17:50:23 2017 +0900 @@ -366,6 +366,8 @@ $arg =~ s/^(\s)*(\w+)/$2/; if ($pType =~ s/\_\_code$//) { print $fd "\tGearef(context, $ntype)->$pName = C_$arg;\n"; + } elsif ($pType =~ s/Data$//){ + print $fd "\tGearef(context, $ntype)->$pName = (union Data*) $arg;\n"; } else { print $fd "\tGearef(context, $ntype)->$pName = $arg;\n"; }