Skip to content

Commit

Permalink
Fix Array and Dictionary id() and dictionary test bug
Browse files Browse the repository at this point in the history
(cherry picked from commit e2ed9d1)
  • Loading branch information
cdemirer authored and akien-mga committed Jan 25, 2022
1 parent 5b240d8 commit dd57c32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ Variant Array::max() const {
}

const void *Array::id() const {
return _p->array.ptr();
return _p;
}

Array::Array(const Array &p_from) {
Expand Down
2 changes: 1 addition & 1 deletion core/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void Dictionary::operator=(const Dictionary &p_dictionary) {
}

const void *Dictionary::id() const {
return _p->variant_map.id();
return _p;
}

Dictionary::Dictionary(const Dictionary &p_from) {
Expand Down

0 comments on commit dd57c32

Please sign in to comment.