this is indeed not correct. Currently Long_t is not yet a portable
data type (4 byte on 32 bit machine and 8 on 64 bit machines).
We would like to typedef Long_t to long long on 32 bit machines but
long long is not yet supported by all compilers. We plan to experiment
with long long soon.
Cheers, Fons.
>
> Hello ROOTers,
>
> on the web page http://root.cern.ch/root/html/ListOfTypes.html, one can
> read:
>
> Long_t ............. Signed long integer 8 bytes
> ULong_t ............ Unsigned long integer 8 bytes
>
> This seems to be wrong:
>
> CINT/ROOT C/C++ Interpreter version 5.13.62, June 21 1998
> Type ? for help. Commands must be C++ statements.
> Enclose multiple statements between { }.
> root [0] sizeof(Long_t)
> (int)4
> root [1] sizeof(ULong_t)
> (int)4
>
>
> Is it possible to have 8 bytes integer defined inside ROOT,
> corresponding to the int long long type?
>
>
> Thanks.
>
> ----------------------------------------------------------
> Mathieu de Naurois
> LPNHE Ecole Polytechnique
> denauroi@polhp1.in2p3.fr
>
-- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910