Bug in FsCreateParamArray from SimParamArrayHelper.h

Version: 1.7.28.0

Frequency: Consistently

Severity: High

Marketplace package name: -

Context: SDK code

Bug description:

My compiler started complaining about this code in FsCreateParamArray, looks like it tries to write double into intValue instead of doubleValue. Probably not what the author intended.

	else if (fmt[i] == 'f')
	{
		result.array[i].type     = FsVarParamTypeDouble;
		result.array[i].intValue = va_arg(args, double);
	}

Repro steps:

Attachments:

Hey @some1,

Thanks for the report, the bug has been created on our side.

Best regards,
Romain

Hey @some1 ,

The bug is now fixed in the latest SDK 1.7.2.

1 Like