File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
bindings/pyroot/cppyy/CPyCppyy/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments