Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
#define tools_tosu
// have a "sprintf(%u)" without #include.
// It is used in os.
// It is used in platform.
namespace tools {
@@ -28,7 +28,7 @@ inline void tosu(T a_i,char a_s[],unsigned int& a_l) {
{char* pos = a_s;
T i = a_i;
while(true) {
if(i<=9) {*pos = '0'+char(i);pos++;a_l++;*pos=0;break;}
if(i<=9) {*pos = '0'+char(i);pos++;a_l++;*pos=0;pos++;break;}
T r = i % 10;
*pos = '0'+char(r);pos++;
a_l++;