Long64_t

Hi, I have a strange problem:


  •                                                         *
    
  •    W E L C O M E  to  R O O T          *
    
  •                                                         *
    
  • Version 5.20/00 24 June 2008 *
  •                                                         *
    

ROOT 5.20/00 (trunk@24524, Jun 25 2008, 10:07:00 on linux)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] Long64_t RSmaximum;
root [1] RSmaximum=4294967294;
root [2] RSmaximum
(Long64_t)(-2)

and:

root [3] kMaxLong64
(const Long64_t)9223372036854775807

moreover a larger number is correct:

root [10] RSmaximum=4294967297000;
root [11] RSmaximum
(Long64_t)4294967297000

something looks wrong!

regards, Mariusz

Hi,

Per C++ standard you must use:root [1] RSmaximum=4294967294LL;

Cheers,
Philippe.

CINT should behave as expected in the current trunk.

Cheers, Axel.