Skip to content

Commit

Permalink
bugfix UBsan runtime error
Browse files Browse the repository at this point in the history
Discovered cast error by UBSan.
  • Loading branch information
silverqx committed May 28, 2022
1 parent 6646909 commit 1984636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/orm/tiny/concerns/hasrelationstore.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,12 @@ namespace Orm::Tiny::Concerns
break;

case RelationStoreType::QUERIES_RELATIONSHIPS_QUERY:
case RelationStoreType::QUERIES_RELATIONSHIPS_TINY_NESTED:
static_cast<QueriesRelationshipsStore<void> *>(this)
->template visited<Related>(method);
break;

case RelationStoreType::QUERIES_RELATIONSHIPS_TINY:
case RelationStoreType::QUERIES_RELATIONSHIPS_TINY_NESTED:
static_cast<QueriesRelationshipsStore<Related> *>(this)
->template visited<Related>(method);
break;
Expand Down

0 comments on commit 1984636

Please sign in to comment.