Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10334

TFile::GetBestBuffer casting to Int_t Overflows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.18/04
    • Fix Version/s: 6.16/02, 6.20/00, 6.18/06
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      ROOT as used within ALICE o2 on Ubuntu 18.04

      Description

      I am writing a big Object to TFile.

      Int_t TFile::GetBestBuffer() const

      does a calculation in Double_t arithmetic and then casts down to Int_t. For my file, this cast overflows and returns a negative number.

      With todays 64Bit machines, does it make sense to return Int_t here?

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              milettri Michael Lettrich
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: