← Back to team overview

kaliveda-dev team mailing list archive

Re: [Question #236920]: Error when compiling KaliVeda 1.8.10 : integer constant is too large for ‘long’ type

 

Question #236920 on KaliVeda changed:
https://answers.launchpad.net/kaliveda/+question/236920

John Frankland requested more information:
est-ce que tu peux compiler cette petite fonction dans ROOT et poster le
résultat ?

pour moi (64 bits) ça donne:

root [20] .L test.C+
Info in <ACLiC>: modified script has already been compiled and loaded
Info in <ACLiC>: it will be regenerated and reloaded!
Info in <TUnixSystem::ACLiC>: creating shared library /home/john/./test_C.so
Warning: link requested for unknown srcfile /home/john/./test.h /home/john/test_C_ACLiC_linkdef.h:8:
root [21] test()
1 4.94066e-324
8000000000000001 -4.94066e-324
8000000000000000 -0

/************* test.C ******************/
#include "Rtypes.h"
#include "Riostream.h"

using namespace std;

void test(){

   union converter {
      Double_t f;
      Long64_t i;
   } val;
   
   val.i=0x1;
   cout << hex << val.i << " " << dec << val.f << endl;
   val.f= -val.f;
   cout << hex << val.i << " " << dec << val.f << endl;
   val.i-=0x1;
   cout << hex << val.i << " " << dec << val.f << endl;
}
/***********************************************/

-- 
You received this question notification because you are a member of
KaliVeda Development Team, which is an answer contact for KaliVeda.