Skip to content

Commit eb20713

Browse files
committed
Fix for console problem with silently castable data types
1 parent 28fa57d commit eb20713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/modules/soul_core/heart/soul_heart_AST.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ struct heart
172172
{
173173
auto type = isElementAccess ? sampleType : getSampleArrayType (sampleType);
174174

175-
if (TypeRules::canSilentlyCastTo (type, t))
175+
if (TypeRules::canPassAsArgumentTo (type, t, true))
176176
return getSampleArrayType (sampleType);
177177
}
178178

0 commit comments

Comments
 (0)