Skip to content

Commit a99d02e

Browse files
committed
Revert "[cppyy] Fix invalid static_cast in last commit"
This reverts commit 36d729f.
1 parent f849479 commit a99d02e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/pyroot/cppyy/CPyCppyy/src/CPPOverload.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ uint64_t HashSignature(CPyCppyy_PyArgs_t args, size_t nargsf)
5353
if (CPPOverload_Check(pyobj)) {
5454
// Hash the method name and overload count for uniqueness
5555
// All O(1) access - no RTTI, no string construction
56-
auto *ol = reinterpret_cast<CPPOverload *>(pyobj);
56+
auto *ol = static_cast<CPPOverload *>(pyobj);
5757
hash_combine(hash, str_hash(ol->fMethodInfo->fName));
5858
hash_combine(hash, static_cast<uint64_t>(ol->fMethodInfo->fMethods.size()));
5959
} else if (TemplateProxy_Check(pyobj)) {
6060
// Hash the stable template name (fCppName includes scope for templates)
61-
auto *tp = reinterpret_cast<TemplateProxy *>(pyobj);
61+
auto *tp = static_cast<TemplateProxy *>(pyobj);
6262
hash_combine(hash, str_hash(tp->fTI->fCppName));
6363
} else {
6464
// Standard type-based hashing for other objects

0 commit comments

Comments
 (0)