[Gate-users] Cluster tools : Patch for 64 bist architecture

Sebastien JAN sebastien.jan at cea.fr
Wed May 9 16:02:24 CEST 2007


A patch from Patrice Descourt

##################
Hello

I would like to point out that everyone who uses the jobsplitter in 64  
bits architecture
should replace two lines in src/GateMacFileParser.cc
in GateMacfileParser::AddPWD(G4String key)
replace
unsigned int pos=filename.rfind("/");
by long unsigned int pos=filename.rfind("/");
and in void GateMacfileParser::RemoveExtension()
replace
unsigned int pos=macline.rfind(".rndm");
by
long unsigned int pos=macline.rfind(".rndm");

because in 64 bits the string::npos is coded as long unsigned int
cheers
Patrice



More information about the Gate-users mailing list