{ TFile *f = new TFile("/tmp/rust/root_write/i32/int32_t/5.root"); TTree *t = (TTree*)f->Get("mytree"); cout << "SIZEOF(int32_t) = " << sizeof(int32_t) << endl; int32_t n = 0; t->SetBranchAddress("i32", &n); //cout << ">>ENTRIES: " << t->GetEntries() << endl; for (int i = 0; i < t->GetEntries(); i++) { t->GetEntry(i); cout <<">>"<< static_cast(n) << endl; } f->Close(); }