@@ -167,7 +167,7 @@ static int writeBinds( xmlTextWriterPtr writer, FmlSessionHandle handle, FmlObje
167
167
168
168
static int writeArguments ( xmlTextWriterPtr writer, FmlSessionHandle handle, FmlObjectHandle object )
169
169
{
170
- int count = Fieldml_GetArgumentCount ( handle, object, 0 , 0 );
170
+ int count = Fieldml_GetArgumentCount ( handle, object, /* isBound */ 0 , /* isUsed */ 1 );
171
171
if ( count <= 0 )
172
172
{
173
173
return 0 ;
@@ -177,7 +177,7 @@ static int writeArguments( xmlTextWriterPtr writer, FmlSessionHandle handle, Fml
177
177
178
178
for ( int i = 1 ; i <= count; i++ )
179
179
{
180
- FmlObjectHandle argument = Fieldml_GetArgument ( handle, object, i, 0 , 0 );
180
+ FmlObjectHandle argument = Fieldml_GetArgument ( handle, object, i, /* isBound */ 0 , /* isUsed */ 1 );
181
181
if ( argument == FML_INVALID_HANDLE )
182
182
{
183
183
continue ;
@@ -478,6 +478,7 @@ static int writeReferenceEvaluator( xmlTextWriterPtr writer, FmlSessionHandle ha
478
478
479
479
writeObjectName ( writer, NAME_ATTRIB, handle, object );
480
480
writeObjectName ( writer, EVALUATOR_ATTRIB, handle, Fieldml_GetReferenceSourceEvaluator ( handle, object ) );
481
+ writeObjectName ( writer, VALUE_TYPE_ATTRIB, handle, Fieldml_GetValueType ( handle, object ) );
481
482
482
483
writeBinds ( writer, handle, object );
483
484
0 commit comments