Skip to content

Commit e34d247

Browse files
committed
TreeStream: Allow also for int8_t to be dumped as signed char
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 348b194 commit e34d247

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Common/Utils/include/CommonUtils/TreeStream.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class TreeStream
6363
const char* getName() const { return mTree.GetName(); }
6464
void setID(int id) { mID = id; }
6565
int getID() const { return mID; }
66+
6667
TreeStream& operator<<(const Bool_t& b)
6768
{
6869
CheckIn('B', &b);
@@ -75,6 +76,12 @@ class TreeStream
7576
return *this;
7677
}
7778

79+
TreeStream& operator<<(const int8_t& i)
80+
{
81+
CheckIn('B', &i);
82+
return *this;
83+
}
84+
7885
TreeStream& operator<<(const UChar_t& c)
7986
{
8087
CheckIn('b', &c);

0 commit comments

Comments
 (0)