This commit is contained in:
blueloveTH 2023-02-20 03:40:24 +08:00
parent 22b0d46c73
commit 404f7f8c6f
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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