Import Geant4 10.3.0 source tree
This commit is contained in:
@@ -13,7 +13,7 @@ namespace file {
|
||||
inline bool signature(const std::string& a_file,unsigned char a_head[],unsigned int& a_num){ //it is assumed a_head[] can contain a_num chars.
|
||||
FILE* file = ::fopen(a_file.c_str(),"rb");
|
||||
if(!file) {a_num=0;return false;}
|
||||
a_num = ::fread(a_head,1,a_num,file);
|
||||
a_num = (unsigned int)::fread(a_head,1,a_num,file);
|
||||
::fclose(file);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user