Explorar o código

Update ceval.cpp

blueloveTH %!s(int64=2) %!d(string=hai) anos
pai
achega
0c46f21c19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ceval.cpp

+ 1 - 1
src/ceval.cpp

@@ -748,7 +748,7 @@ __NEXT_STEP:;
         if(is_non_tagged_type(_0, tp_function)){
         if(is_non_tagged_type(_0, tp_function)){
             PK_OBJ_GET(Function, _0)._class = _curr_class;
             PK_OBJ_GET(Function, _0)._class = _curr_class;
         }
         }
-        TOP()->attr().set(_name, _0);
+        _curr_class->attr().set(_name, _0);
     } DISPATCH();
     } DISPATCH();
     /*****************************************/
     /*****************************************/
     TARGET(WITH_ENTER)
     TARGET(WITH_ENTER)