File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11183,14 +11183,14 @@ update_one_slot(PyTypeObject *type, pytype_slotdef *p)
1118311183        }
1118411184        else  {
1118511185            use_generic  =  1 ;
11186-             //  if (generic == NULL && Py_IS_TYPE(descr, &PyMethodDescr_Type) &&
11187-             //      *ptr == ((PyMethodDescrObject *)descr)->d_method->ml_meth)
11188-             //  {
11189-             //      generic = *ptr;
11190-             //  }
11191-             //  else {
11192-             //      generic = p->function;
11193-             //  }
11186+             if  (generic  ==  NULL  &&  Py_IS_TYPE (descr , & PyMethodDescr_Type ) && 
11187+                 * ptr  ==  ((PyMethodDescrObject  * )descr )-> d_method -> ml_meth )
11188+             {
11189+                 generic  =  * ptr ;
11190+             }
11191+             else  {
11192+                 generic  =  p -> function ;
11193+             }
1119411194            generic  =  p -> function ;
1119511195            if  (p -> function  ==  slot_tp_call ) {
1119611196                /* A generic __call__ is incompatible with vectorcall */ 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments