Fix of is_comparable.

This commit is contained in:
Christoffer Lerno
2023-07-17 21:22:09 +02:00
parent fd5336c56e
commit 2e6c8721bc

View File

@@ -99,7 +99,7 @@ macro bool is_comparable($Type)
{
var $kind = $Type.kindof;
$if $kind == TypeKind.DISTINCT:
return is_comparable($Type.inner);
return is_comparable($typefrom($Type.inner));
$else
return $kind == TypeKind.SIGNED_INT || $kind == TypeKind.UNSIGNED_INT || $kind == TypeKind.FLOAT
|| $kind == TypeKind.VECTOR || $kind == TypeKind.BOOL || $kind == TypeKind.POINTER