Skip to content

Commit 0aa503e

Browse files
committed
meta: use the right guard
1 parent 02323e8 commit 0aa503e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entt/meta/meta.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ bool meta_any::set(const id_type id, Type &&value) {
15821582
if(storage.has_value(type.info())) {
15831583
return as_ref();
15841584
} else if(*this) {
1585-
if(const auto &from = fetch_node(); from.conversion_helper && type.is_arithmetic() || type.is_enum()) {
1585+
if(const auto &from = fetch_node(); from.conversion_helper && (type.is_arithmetic() || type.is_enum())) {
15861586
auto other = type.construct();
15871587
const auto value = from.conversion_helper(nullptr, storage.data());
15881588
other.fetch_node().conversion_helper(other.storage.data(), &value);

0 commit comments

Comments
 (0)