Hello,

i have checked the sources of ttmath with the static code analysis tool cppcheck (). It found an issue (not an serious on, IMHO but worth to look at):

$cppcheck --enable=all ttmath/
[./ttmath/ttmathobjects.h:84]: (warning) Member variable not initialized in the constructor 'Item::param'

Take a look at the source (file/ttmath/ttmathobjects at line 84):
...
struct Item
{
// name of a variable of a function
// internally we store variables and funcions as std::string (not std::wstring even when wide characters are used)
std::string value;

// number of parameters required by the function
// (if there's a variable this 'param' is ignored)
int param;

Item() {}
Item(const std::string & v, int p) : value(v), param(p) {}
};
...
As you can see param is not intialized with a default value during objectsconstruction.

Best regards

Martin

Added by: ~Martin, 2010 XI 22

I forgot to mention, cppcheck is available at sourceforge:

http://sourceforge.net/projects/cppcheck/