From: Jorge Valencia (jorgev++at++cae.ca)
Date: 06/19/2000 08:24:49
Hi pf's,
The pfSwitch man page (on Irix & Linux) says that pfSwitch::getVal() returns
an int but the function returns a float. It also says that
pfSwitch::setVal(int val) take an int as argument but it actually takes a
float.
Is the documentation wrong? or is it the code? (I guess that the value of a
swicth can't be something like 1.6789, it should be an int, no?)
Thanks.
-- Jorge Valencia Space System Engineer CAE Electronics Ltd. jorgev++at++cae.ca (514) 341-2000 x3733From the pfSwitch man page:
int pfSwitch::setVal(int val);
int pfSwitch::getVal(void);
From the /usr/include/Performer/pf/pfSwitch.h file:
class pfSwitch : public pfGroup { public:
int setVal(float val) { return PFSWITCH->nb_setVal(val); }
float getVal() const { return PFSWITCH->nb_getVal(); } ... }
This archive was generated by hypermail 2b29 : Mon Jun 19 2000 - 08:27:30 PDT