From 1984636bdb014bd1b72af2b473f9af487fc13b44 Mon Sep 17 00:00:00 2001 From: silverqx Date: Sat, 28 May 2022 18:01:35 +0200 Subject: [PATCH] bugfix UBsan runtime error Discovered cast error by UBSan. --- include/orm/tiny/concerns/hasrelationstore.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/orm/tiny/concerns/hasrelationstore.hpp b/include/orm/tiny/concerns/hasrelationstore.hpp index 532feee2b..71405325a 100644 --- a/include/orm/tiny/concerns/hasrelationstore.hpp +++ b/include/orm/tiny/concerns/hasrelationstore.hpp @@ -404,12 +404,12 @@ namespace Orm::Tiny::Concerns break; case RelationStoreType::QUERIES_RELATIONSHIPS_QUERY: + case RelationStoreType::QUERIES_RELATIONSHIPS_TINY_NESTED: static_cast *>(this) ->template visited(method); break; case RelationStoreType::QUERIES_RELATIONSHIPS_TINY: - case RelationStoreType::QUERIES_RELATIONSHIPS_TINY_NESTED: static_cast *>(this) ->template visited(method); break;