mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
bug fix
This commit is contained in:
parent
22b0d46c73
commit
404f7f8c6f
2
src/vm.h
2
src/vm.h
@ -354,7 +354,7 @@ public:
|
||||
it = (*root)->attr().find(name);
|
||||
if(it != (*root)->attr().end()) return it->second;
|
||||
}else{
|
||||
if(obj->is_attr_valid()){
|
||||
if(!obj.is_tagged() && obj->is_attr_valid()){
|
||||
it = obj->attr().find(name);
|
||||
if(it != obj->attr().end()) return it->second;
|
||||
}
|
||||
|
@ -121,7 +121,8 @@ assert round(-23.8) == -24
|
||||
|
||||
assert 7**21 == 558545864083284007
|
||||
assert 7**22 == 3909821048582988049
|
||||
assert 2**62 == 4611686018427387904
|
||||
assert 2**61 == 2305843009213693952
|
||||
assert -2**61 == -2305843009213693952
|
||||
assert eq(2**-2, 0.25)
|
||||
assert 0**0 == 1
|
||||
assert 0**1 == 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user