--- caps-0.1.1/Descriptor.h Tue Feb 17 23:57:33 2004 +++ Descriptor.h Wed Feb 18 21:03:48 2004 @@ -33,19 +33,11 @@ void autogen() { - PortCount = sizeof (T::ports) / sizeof (LADSPA_Data *); + PortCount = (sizeof (T::port_info) / sizeof (PortInfo)); char ** names = new char * [PortCount]; LADSPA_PortDescriptor * desc = new LADSPA_PortDescriptor [PortCount]; LADSPA_PortRangeHint * ranges = new LADSPA_PortRangeHint [PortCount]; - - int port_infos = (int) (sizeof (T::port_info) / sizeof (PortInfo)); - if (PortCount != (ulong) port_infos) - { - fprintf (stderr, "%d ports, %d port_infos\n", (int) PortCount, port_infos); - assert (0); - } - assert (PortCount == (ulong) port_infos); for (int i = 0; i < (int) PortCount; ++i) {