From 5e0d4e8e3acdb0f968a73064a9d07a9328761b54 Mon Sep 17 00:00:00 2001
From: Philippe Canal <pcanal@fnal.gov>
Date: Fri, 5 Jun 2015 09:49:47 -0500
Subject: [PATCH] Avoid undefined behavior

---
 core/cont/src/TClassTable.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/cont/src/TClassTable.cxx b/core/cont/src/TClassTable.cxx
index f6738decf93..3008f1b5236 100644
--- a/core/cont/src/TClassTable.cxx
+++ b/core/cont/src/TClassTable.cxx
@@ -195,7 +195,7 @@ namespace ROOT {
 
    static UInt_t ClassTableHash(const char *name, UInt_t size)
    {
-      const char *p = name;
+      auto p = reinterpret_cast<const unsigned char*>( name );
       UInt_t slot = 0;
 
       while (*p) slot = slot<<1 ^ *p++;
-- 
GitLab