missing typedef in toint.cpp