commit 7e03ad0725a15f0775db2c69a5f1fddfaab7d704
parent 344e88beffb7936c3260a38d413f5ea562f3207b
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 1 Feb 2021 15:36:13 -0500
types: fix cast to rune
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/types.c b/src/types.c
@@ -561,7 +561,7 @@ type_is_castable(const struct type *to, const struct type *from)
case TYPE_STORAGE_CHAR:
return from->storage == TYPE_STORAGE_U8;
case TYPE_STORAGE_RUNE:
- return from->storage == TYPE_STORAGE_RUNE;
+ return from->storage == TYPE_STORAGE_U32;
case TYPE_STORAGE_ENUM:
return from->storage == TYPE_STORAGE_ENUM || type_is_integer(from);
case TYPE_STORAGE_F32: