The two-state variables are in the vpiVariable category.

Add all the two-state variables (bit, byte, short, int and long) to
the vpiVariable category.
This commit is contained in:
Cary R 2011-09-06 08:58:25 -07:00 committed by Stephen Williams
parent 507621ef30
commit dd9962c221
1 changed files with 7 additions and 2 deletions

View File

@ -270,8 +270,13 @@ static int compare_types(int code, int type)
return 1;
if ( code == vpiVariables &&
(type == vpiIntegerVar ||
type == vpiTimeVar ||
(type == vpiIntegerVar ||
type == vpiBitVar ||
type == vpiByteVar ||
type == vpiShortIntVar ||
type == vpiIntVar ||
type == vpiLongIntVar ||
type == vpiTimeVar ||
type == vpiRealVar))
return 1;