generation fixes
Publish PHP Package / docker (push) Successful in 5s Details

This commit is contained in:
wrenge 2024-05-07 17:17:03 +03:00
parent 7895ef0663
commit 4e318232c3
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ function var_sync($fname, \mtgType $type, $buf, array $tokens, $opts)
{
$str .= "int __tmp_{$fname} = (int)$fname;\n";
$str .= "MetaIO.Sync({$buf}, ref __tmp_{$fname}, \"{$key_name}\", {$opts});\n";
$str .= "if($buf.is_read) {$fname} = ({$type->getName()})__tmp_{$fname};\n";
$str .= "if($buf.is_read) {$fname} = (".cs_type($type).")__tmp_{$fname};\n";
}
else if($type instanceof \mtgArrType)
{